what should minimum processor spacification for multimediea timers??
-
what should minimum processor spacification for multimediea timers?? we are useing multimidiea timers for multithreading our project is working well on "Inter(R) pentimu(R) Dual CPU" processor speed is 1.99GHz and RAM is 1GB but when we run our project on "intel(R)Celeron(R) CPU 2.39 GHz",1GH RAM project became slow and not capturing events properly (mouse events) and application is not synchronized and works irregular
-
what should minimum processor spacification for multimediea timers?? we are useing multimidiea timers for multithreading our project is working well on "Inter(R) pentimu(R) Dual CPU" processor speed is 1.99GHz and RAM is 1GB but when we run our project on "intel(R)Celeron(R) CPU 2.39 GHz",1GH RAM project became slow and not capturing events properly (mouse events) and application is not synchronized and works irregular
anilaabc wrote:
but when we run our project on "intel(R)Celeron(R) CPU 2.39 GHz",1GH RAM project became slow
Well, that's to be expected if your application is able to benefit from multiple cores, even though the clock frequency is increased a bit.
anilaabc wrote:
not capturing events properly (mouse events) and application is not synchronized and works irregular
This is suspicious and has nothing to do with multimedia timers. It suggests that you have developed a nice bug somewhere. The first thing I would look for is threads having their priority set to
THREAD_PRIORITY_TIME_CRITICAL
, or even that the process is running at a higher priority thanNORMAL_PRIORITY_CLASS
. Bumping the priority of a thread or process that consumes a lot a CPU time is always wrong and would lead to the consequences you're describing. If this is the case, then the reason it works better on a multiple core machine is that one core handles the e.g. mouse input, while the other core is executing the the high prioritized thread doing nothing else."It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
what should minimum processor spacification for multimediea timers?? we are useing multimidiea timers for multithreading our project is working well on "Inter(R) pentimu(R) Dual CPU" processor speed is 1.99GHz and RAM is 1GB but when we run our project on "intel(R)Celeron(R) CPU 2.39 GHz",1GH RAM project became slow and not capturing events properly (mouse events) and application is not synchronized and works irregular
In addition to Roger's reply... I would really look at the design of the code. I use multimedia timers in heavy multimedia applications (audio, video, etc.) and it still works well on an old PIII laptop I have running at 1.7Ghz (if I remember right) and only 256MB RAM. The OS helps a bit - I saw an improvement in multithread performance starting with XP, but still, the code has to be designed properly... Nothing exposes bad multithread design like switching to a multi-core/multi-CPU machine :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
In addition to Roger's reply... I would really look at the design of the code. I use multimedia timers in heavy multimedia applications (audio, video, etc.) and it still works well on an old PIII laptop I have running at 1.7Ghz (if I remember right) and only 256MB RAM. The OS helps a bit - I saw an improvement in multithread performance starting with XP, but still, the code has to be designed properly... Nothing exposes bad multithread design like switching to a multi-core/multi-CPU machine :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Mark Salsbery wrote:
I would really look at the design of the code.
I second that. Twice.
Mark Salsbery wrote:
Nothing exposes bad multithread design like switching to a multi-core/multi-CPU machine
Hear, hear.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown