Modifying draw code in order to test if vsync is enabled