Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. what should minimum processor spacification for multimediea timers??

what should minimum processor spacification for multimediea timers??

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anilaabc
    wrote on last edited by
    #1

    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

    R M 2 Replies Last reply
    0
    • A anilaabc

      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

      R Offline
      R Offline
      Roger Stoltz
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • A anilaabc

        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

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        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:

        R 1 Reply Last reply
        0
        • M Mark Salsbery

          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:

          R Offline
          R Offline
          Roger Stoltz
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups