Jump to content
  • Advertisement

Archived

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

CoolMike

Input Delay or something

This topic is 6690 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

This question is pretty vague, but I have no clue how to fix it. After I press ESC to quit my program, the stupid thing freezes up for quite a while before finally returning to windows. I usually end up pressing CTRL+ALT+DEL to end the task. Obviously, this is a major pain. Also, for some reason the all game input (mouse and keyboard) is delayed a few seconds unless I insert the following two lines somewhere in my main loop: lpddsback->Lock(NULL,&ddsd, DDLOCK_SURFACEMEMORYPTR / DDLOCK_WAIT,NULL); lpddsback->Unlock(bitmap_buffer); When I add these lines, the input is not delayed, but the game still takes forever to shut down. Does anybody have any ideas?

Share this post


Link to post
Share on other sites
Advertisement
do you need those for double buffered animation?

Are you sure your releasing all your devices on exit,
like the keyboard, mouse, and video hardware?

-Mezz

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!