ok I'll try and put some code up here. If I run this in setwindowsize(1920,1080,1) it will work at about 48 fps and if I run it at setwindowsize(1920,1080,0) it works fine but I want full screen. Oh yes v turns vsync() on and b turns vsync() off.
// Project: butterfly
// Created: 21-05-03
// show all errors
#renderer"Basic"
SetErrorMode(2)
// set window properties
SetWindowTitle( "butterfly" )
SetWindowSize( 1920,1080,1 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 960,540 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 60, 1 ) // 30fps instead of 60 to save battery
setvsync(1)
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
sync()
Print( ScreenFPS() )
loadobject(1,"butterfly3.obj")
texture1=loadimage("butterfly3.png")
setobjectimage(1,texture1,1)
SetCameraPosition(1,75,100,0)
SetCameraLookAt(1,75,100,0,0)
setobjectposition(1,75,175,320)
setobjectrotation(1,0,270,30)
do
print(screenfps())
RotateObjectLocalY(1,1)
MoveObjectLocalz(1,-2)
if getrawkeystate(66)=1
setvsync(0)
setsyncrate(60,0)
print("vsync()off")
endif
if getrawkeystate(86)=1
setvsync(1)
print("vsync()on")
endif
sync()
if getrawkeystate(27)=1 then end
loop