fixing timing bug

Timing was completely broken when not using vSync.