Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable vsync on macOS

With all my SDL/OpenGL programs, the framerate is stuck at 60fps, so looks like the vsync is enable, but not by me, nor in my code or my settings. so i would like to now if there is a way to disable it, maybe in some deep macOS settings?

like image 981
Nox Avatar asked Sep 10 '12 05:09

Nox


2 Answers

This enabled me to get around ~700 frames per second on my MacBook Pro.

  • Download Graphics Tools for Xcode - Late August 2014
  • Install or just mount Graphic Tools
  • Open Quartz Debug
  • Go to Tools -> Show Beam Sync Tools
  • Select Disable Beam Synchronization

It is not permanent either, perfect for testing/benchmarking.

Source

like image 105
cevaris Avatar answered Oct 21 '22 08:10

cevaris


Welcome to SO. I outlined an approach here for a similar question. You should consider that most Mac LCDs are locked to 60Hz, and more recent hardware is limited to 120Hz. Disabling vsync may simply result in wasted CPU/GPU cycles, and possibly introduce tearing artifacts.

like image 5
Brett Hale Avatar answered Oct 21 '22 06:10

Brett Hale