Advertisement

Bliter speeds up when key pressed!?

Started by March 22, 2002 07:52 PM
0 comments, last by Spearhawk 22 years, 9 months ago
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?
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

This topic is closed to new replies.

Advertisement