setFramerate method
Implementation
bool setFramerate(int rate) {
if ((rate >= FPS_LOWER_LIMIT) && (rate <= FPS_UPPER_LIMIT)) {
_framecount = 0;
_rate = rate;
_rateticks = 1000.0 / rate.toDouble();
_measticks = _getTicks();
_measrate = 0;
_meascount = 0;
return true;
} else {
return false;
}
}