Protected frameSleep so subtypes can run performance statistics
Corrected framerate timing.