Jump to content
  • Advertisement

Archived

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

Spearhawk

Bliter speeds up when key pressed!?

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

Hi, I''m n the end of chapter ten in Windows Game Programming fo Dummies and have just writen the program that bliters random parts of a bitmap to the screen. This is where I notised something strange, if I press a key (any) the program will speed up significantely. How can that be? The only code I have conserning the keys is a if case to check if escape is pressed incase the program quits. But even if I coment out those lines I get the same "phenomen". Anyone knows why it might be doing this?

Share this post


Link to post
Share on other sites
Advertisement
Are you updateing the screen in the windows messaging callback function, if so its because keypresses are messages.

See Move bmp thread in this section.

,Jay

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!