Expand|Select|Wrap|Line Numbers
- WHILE (TRUE)
- {
- /* update all structs (bitmap locations, etc) */
- SleepEx(iSpeed, FALSE);
- InvalidateRect(hwnd, lpRect, TRUE);
- }
The animation on my home computer seemed smooth and reasonable (it looked good), but then I copied the EXE to my work computer, and when I tried it at work, it seems to run in slow motion. It's still smooth, not skipping 'frames' and not showing any graphical problems, but it runs in slow motion. I do notice that every now and then the animation speeds up to its normal pace for a few seconds, but then it slows down again.
I know the problem is not with my work computer. I've run simple games on it before and their animation speeds are normal.
Any advice?