diff --git a/macos/cc/WindowMac.mm b/macos/cc/WindowMac.mm index 58341462..6cb81e79 100644 --- a/macos/cc/WindowMac.mm +++ b/macos/cc/WindowMac.mm @@ -59,13 +59,13 @@ static CVReturn displayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt dispatch_async(dispatch_get_main_queue(), ^{ window->fFrameRequested = false; window->dispatch(jwm::classes::EventFrame::kInstance); - if (!window->fFrameRequested) { - std::lock_guard lock(window->fDisplayLinkMutex); - if (!window->fFrameRequested && window->fDisplayLinkRunning) { - CVDisplayLinkStop(window->fDisplayLink); - window->fDisplayLinkRunning = false; - } - } + // if (!window->fFrameRequested) { + // std::lock_guard lock(window->fDisplayLinkMutex); + // if (!window->fFrameRequested && window->fDisplayLinkRunning) { + // CVDisplayLinkStop(window->fDisplayLink); + // window->fDisplayLinkRunning = false; + // } + // } window->unref(); window->fFrameScheduled = false; });