TIMEPERFRAME_AVG_FPS
int fps = TIMEPERFRAME_AVG_FPS(*timeperframe);
if (TIMEPERFRAME_AVG_FPS(mode->timeperframe) == fps)