renderer/metal: stop/start display link on occlusion

This commit is contained in:
Mitchell Hashimoto
2024-05-03 20:54:13 -07:00
parent 6ae1784f4b
commit ac813c9244
3 changed files with 30 additions and 0 deletions

View File

@@ -272,6 +272,9 @@ fn drainMailbox(self: *Thread) !void {
// still be happening.
if (v) self.drawFrame();
// Notify the renderer so it can update any state.
self.renderer.setVisible(v);
// Note that we're explicitly today not stopping any
// cursor timers, draw timers, etc. These things have very
// little resource cost and properly maintaining their active