I wrote program in C++ using visual studio express which continuously takes a frame from a camera, detects an area in the frame and then performs some calculations.
I have tested the program on two computers. The program runs well on computer A but is very slow on computer B. The program outputs to the computer screen a live video of what the camera is seeing and it appears as if a number of frames are been lost. For example, I will see an object entering on the left side of the field of view of the camera, the live video will freeze and then a few moments later the object will be on the right side of the field of view of the camera. The computer completely missed the frames showing the object moving across the field of view.
Computer A Specs:
OS: Windows 7
Memory: 3 GB RAM
CPU: Processor AMD Athlon(tm) II X2 215 Processor, 2700 Mhz, 2 Core(s), 2 Logical Processor(s)
Computer B Specs:
OS: Windows XP
Memory: 1GB RAM
CPU: x86 Family 6 Model 10 Stepping 9 CentaurHauls ~999 Mhz
Computer B
On computer B, when only the start up programs and processes are running the CPU usage fluctuates around 13%. When my program is running, under task manager I can see that the CPU usage fluctuates between 95% and 99%.
Computer A
On computer A, with my program running the total CPU usage is around 30%. With only the start up processing running CPU usage is about 3%.
The Question:
How do I determine what the necessary CPU speed is to run my program. I know that the processor for computer A will do the job but how do I determine what the minimize CPU speed needed is for it not to be slow and sluggish?
I have tested the program on two computers. The program runs well on computer A but is very slow on computer B. The program outputs to the computer screen a live video of what the camera is seeing and it appears as if a number of frames are been lost. For example, I will see an object entering on the left side of the field of view of the camera, the live video will freeze and then a few moments later the object will be on the right side of the field of view of the camera. The computer completely missed the frames showing the object moving across the field of view.
Computer A Specs:
OS: Windows 7
Memory: 3 GB RAM
CPU: Processor AMD Athlon(tm) II X2 215 Processor, 2700 Mhz, 2 Core(s), 2 Logical Processor(s)
Computer B Specs:
OS: Windows XP
Memory: 1GB RAM
CPU: x86 Family 6 Model 10 Stepping 9 CentaurHauls ~999 Mhz
Computer B
On computer B, when only the start up programs and processes are running the CPU usage fluctuates around 13%. When my program is running, under task manager I can see that the CPU usage fluctuates between 95% and 99%.
Computer A
On computer A, with my program running the total CPU usage is around 30%. With only the start up processing running CPU usage is about 3%.
The Question:
How do I determine what the necessary CPU speed is to run my program. I know that the processor for computer A will do the job but how do I determine what the minimize CPU speed needed is for it not to be slow and sluggish?