Added frame loss recorder.
Fixed frame dropping. Refs #102 @30m

Basically I forgot to count the sleep duration into the last_frame time, which is the time before the frame is rendered.