Make sure you have fpsnextframe() called each frame, in a wait 0.05 loop.