Blitz Max Game Framework Demo!

Miscellaneous Forums/Blitz Showcase/Blitz Max Game Framework Demo!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Shambler: Try this is BlitzMax:

Strict

Graphics 800,600,32,60

Local s =100

Local x=0-s
Local y = 300
Local Sync = -1

While Not KeyHit(KEY_ESCAPE)
	Cls
	DrawRect x,y,s,s
	DrawText "Flip "+Sync,0,0
	Flip Sync
	
	x=x+5
	If x > 800 Then x = 0-s
	
	If KeyHit(KEY_SPACE) Then
		Sync = Sync + 1
		If Sync = 2 Then Sync = -1
	EndIf
	
Wend


It's smooth on my PC, but jerky on the laptop. This proves the jerking is BlitzMax/Driver issue not my engine (phew). If you are moving at one pixel per frame it should be perfect, but it is not, how strange!