Revised framerate control
Updated for testing - DX9 mode