How to use "WaitForVerticalBlank". (In my game sprites flick and jumbing.)
How to use "WaitForVerticalBlank".
In my game sprites flick and jumbing. How can I get rid of this?
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement