MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / setVsync

Function setVsync

TheForceEngine/TFE_System/system.cpp:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 void setVsync(bool sync)
86 {
87 s_synced = sync;
88 TFE_Settings::getGraphicsSettings()->vsync = sync;
89 TFE_RenderBackend::enableVsync(sync);
90 s_lastSyncCheck = SDL_GetPerformanceCounter();
91 }
92
93 bool getVSync()
94 {

Callers 4

handleFrameRateFunction · 0.85
startCommonReplayStatesFunction · 0.85
endCommonReplayStatesFunction · 0.85
configGraphicsFunction · 0.85

Calls 2

getGraphicsSettingsFunction · 0.85
enableVsyncFunction · 0.85

Tested by

no test coverage detected