FPS issues seem resolved by using delay in main