mirror of
https://github.com/zhenyan121/SporeBG-Conid.git
synced 2026-04-10 06:14:08 +08:00
Added vsync funtion
This commit is contained in:
@@ -36,6 +36,11 @@ bool WindowManager::Initialize(Config& config) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.window.vsync) {
|
||||||
|
SDL_SetRenderVSync(m_renderer, true);
|
||||||
|
} else {
|
||||||
|
SDL_SetRenderVSync(m_renderer, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user