How to use "WaitForVerticalBlank". (In my game sprites flick and jumbing.)

Started by
0 comments, last by Pavel Krupets 24 years, 1 month ago
How to use "WaitForVerticalBlank". In my game sprites flick and jumbing. How can I get rid of this?
Advertisement
You''re supposed to call it before you call the flip function
I think you should do something like this

//wait for the vsync
lpdd->WaitForVerticalBlank(DDWAITVB_BEGIN, NULL);

//flip the surface(I think you already knew that :-)
lpddsprimary->Flip(NULL, DDFLIP_WAIT);


Hope this helps
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.

This topic is closed to new replies.

Advertisement