Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Event Delay During DirectDraw Flip

This topic is 6588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I haven''t spent a great deal of time investigating this problem, but I thought I might save myself a headache if someone here already knows about it. Without going into detail about my program, I''ll say that there''s about a one second delay for all events. It only happens in windowed mode, not in fullscreen mode. I''ve tracked it down to the portion of the code that displays the backbuffer. My guess is that it works properly in fullscreen mode because it''s flipping instead of blitting. However, I get roughly the same framerate in both modes, even though everything happens slower in windowed mode. Everything from keypresses to dragging the window by the titlebar is delayed. Windows events and DirectInput keypresses are both delayed. Has anyone seen anything like this before?

Share this post

Link to post
Share on other sites
I''ve seen this on some machines here. When in windowed mode, there is no vertical retrace to wait for. Instead, the blit happens immediately. This usually results in about 500-1000 blits per second.

Implement a frame rate limiter that only blits when it is time to show the back buffer. If it is not time to blit, then keep on processing messages.

Steve ''Sly'' Williams
Tools Developer
Krome Studios

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!