Skip to content
Snippets Groups Projects
Commit 76c8a7ff authored by Mnikolenko ProductEngine's avatar Mnikolenko ProductEngine
Browse files

SL-17541 show the message on mac

parent ba9bff5b
No related branches found
No related tags found
No related merge requests found
...@@ -660,6 +660,8 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits ...@@ -660,6 +660,8 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits
} }
} }
mRefreshRate = CGDisplayModeGetRefreshRate(CGDisplayCopyDisplayMode(mDisplay));
// Disable vertical sync for swap // Disable vertical sync for swap
toggleVSync(enable_vsync); toggleVSync(enable_vsync);
......
...@@ -416,7 +416,8 @@ void LLFloaterPerformance::setFPSText() ...@@ -416,7 +416,8 @@ void LLFloaterPerformance::setFPSText()
std::string fps_text = getString("fps_text"); std::string fps_text = getString("fps_text");
static LLCachedControl<bool> vsync_enabled(gSavedSettings, "RenderVSyncEnable", true); static LLCachedControl<bool> vsync_enabled(gSavedSettings, "RenderVSyncEnable", true);
if (vsync_enabled && (current_fps >= gViewerWindow->getWindow()->getRefreshRate())) S32 refresh_rate = gViewerWindow->getWindow()->getRefreshRate();
if (vsync_enabled && (refresh_rate > 0) && (current_fps >= refresh_rate))
{ {
fps_text += getString("max_text"); fps_text += getString("max_text");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment