PDA

View Full Version : Vertical retrace


Mike Halliday
09-03-2009, 12:43 PM
Alain,

Is there a way to 'wait for vertical sync'?

In many languages there is a 'wait vbl' or 'waitsync' command.

Is there such a function in PPL? - I have had a think about it, but cant seem to work out how it can be done!

Any pointers would be gratefully accepted.

M.

kornalius
09-03-2009, 02:49 PM
In PocketHAL there seems to be SWAP_VSYNC flag, I don't if I have access to this internally. I will investigate and get back to you...

kornalius
09-03-2009, 04:20 PM
New swap modes have been added to the GameAPI engine:

#define SWAP_DEFAULT 0
#define SWAP_VSYNC 1
#define SWAP_FULL_UPDATE 2

2 new functions in the interpreter:

g_swapmode();
g_setswapmode(mode$);

This will be part of 1.60 and 2.11.