Hmmm, should this be checking < GetDeltaFrameTime() ? It should be checking against a #define for 1/30fps .