Hey guys,
When I run the following code, I get a terrible screen tearing in the upper half of the screen.
When I broadcast it on my Android, it's almost imperceptible, but still there.
Does anybody know why?
The GFX file is attached!
type BossType
ID as integer
x as float
y as float
angle as integer
speed as float
endtype
global boss as BossType
global aspect as float
SetWindowSize( 1920, 1080, 1 )
aspect = 1920.0 * 1.0 / 1080.0
SetDisplayAspect( aspect )
SetSyncRate( 60, 1 )
GFX_Boss = loadimage ( "boss_96.png" )
boss.ID = CreateSprite ( GFX_Boss )
SetSpriteSize ( boss.ID, 45, 45 )
boss.angle = 0
do
boss.angle = mod ( boss.angle + 1, 360 )
boss.x = 50 + 40 * cos ( boss.angle )
boss.y = 50 + 40 * sin ( boss.angle )
SetSpritePositionByOffset ( boss.ID, boss.x, boss.y )
Sync()
if GetRawKeyPressed ( 27 ) then end
loop