This allows v-sync to be disabled on macOS and lets us remove a whole bunch of old hacks. Further optimizations of the new renderer are still needed.