Re: Turning off some messages - is it possible? Is it unnecessary?
From: Dave (noone_at_nowhere.com)
Date: 05/11/04
- Next message: David Lowndes: "Re: Make Button Text Bold ???"
- Previous message: Carl Daniel [VC++ MVP]: "Re: Precision problem"
- In reply to: Yasoo: "Re: Turning off some messages - is it possible? Is it unnecessary?"
- Next in thread: Yasoo: "Re: Turning off some messages - is it possible? Is it unnecessary?"
- Reply: Yasoo: "Re: Turning off some messages - is it possible? Is it unnecessary?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 May 2004 22:53:13 -0000
to get the same speed of movement with a 10ms timer as you get with a 1ms
timer you have to move 10 times the number of pixels for each screen update.
so if you were moving 1 pixel every 1ms you would want to move 10 pixels in
10ms to get the same speed. you don't want to change speed by changing the
update rate, you fix the update rate and then determine speed by how many
pixels you move the object between frames.
"Yasoo" <anonymous@discussions.microsoft.com> wrote in message
news:DD5A9419-A9A1-4F7D-9EB7-8B81111E0849@microsoft.com...
> I dunno. If I set it to 10 ms it's way too slow. It takes over 6 seconds
to move across the screen. I know what you are saying and I can see the
math, but the results don't show that. I think I already am using double
buffering. I have a memory dc that I set up and then I BitBlt parts of the
memory dc to the screen dc in OnPaint. But I don't think that's the issue.
>
> However, I did stumble across something very interesting by accident.
All the logic in my code isn't in place so I can press the start button more
than once and it will create a new multimedia timer each time. This calls
the callback function at a higher rate and I can get the speed I need while
processor meter stays practically at 0. Voila! :)
- Next message: David Lowndes: "Re: Make Button Text Bold ???"
- Previous message: Carl Daniel [VC++ MVP]: "Re: Precision problem"
- In reply to: Yasoo: "Re: Turning off some messages - is it possible? Is it unnecessary?"
- Next in thread: Yasoo: "Re: Turning off some messages - is it possible? Is it unnecessary?"
- Reply: Yasoo: "Re: Turning off some messages - is it possible? Is it unnecessary?"
- Messages sorted by: [ date ] [ thread ]