void GraphicsManager::renderScene() { Common::enforceMainThread(); cleanupAbandoned(); if (_frameLock.load(boost::memory_order_acquire) > 0) { _frameEndSignal.store(true, boost::memory_order_release); return; } beginScene(); if (playVideo()) { endScene(); return; } renderGUIBack(); renderWorld(); renderGUIFront(); renderCursor(); endScene(); _frameEndSignal.store(true, boost::memory_order_release); }
void GraphicsManager::renderScene() { Common::enforceMainThread(); cleanupAbandoned(); if (_frameLock > 0) return; beginScene(); if (playVideo()) { endScene(); return; } renderWorld(); renderGUIFront(); renderCursor(); endScene(); }