Archived

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

Spearhawk

Bliter speeds up when key pressed!?

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
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