Delay setting up GL screen

BlitzMax Forums/BlitzMax Beginners Area/Delay setting up GL screen

Tom, what's the exact code that you're running?

xlsior wrote:
e.g. Hertz=500 gives me a 20 second delay before anything appears.

That sounds a bit like the test that Graphics does to make sure the screen actually is running at the correct refresh rate.

From mod/brl.mod/glmax2d.mod/glmax2d.bmx in function DetectSync() (a function called by Graphics)
For k=1 To graphics_hertz	'whatever!
		Local t=MilliSecs()
		bglSwapBuffers


Basically, if you set hertz to 500, then this function is going to try and swap the buffers 500 times. If the monitor can handle 500Hz (few, if any, can) then this routine will take 1 second. If the monitor refuses to leave 60Hz mode, the routine will take about 8.3 seconds. Not 20 seconds though.