Quote:
Originally Posted by shrimp
Firstly, how do I see how many fps I'm getting, the CPU usage, etc? Is it possible and how?
|
the actual fps is in the camera init function, the first arg, but to find how fast you loop:
at the top: create a new timer
Timer tmr = new Timer();
just before the loop in auto or where ever your code is:
int timesrun=0;
tmr->Start();
in the loop:
timesrun++;
if (tmr->Get() >= 1.0)
{
tmr->Stop();
printf("This cycle was at %i Hz\n", (timesrun/tmr->Get());
tmr->Reset();
timesrun=0;
tmr->Start();
}
then open the console and every second, it should tell you the speed of the loop