MCPcopy Create free account
hub / github.com/defold/defold / SetSwapInterval

Function SetSwapInterval

engine/engine/src/engine.cpp:709–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707 }
708
709 static void SetSwapInterval(HEngine engine, int swap_interval)
710 {
711 swap_interval = dmMath::Max(0, swap_interval);
712 dmGraphics::SetSwapInterval(engine->m_GraphicsContext, swap_interval);
713
714 if (!dmGraphics::IsContextFeatureSupported(engine->m_GraphicsContext, dmGraphics::CONTEXT_FEATURE_VSYNC))
715 {
716 engine->m_UseSwVSync = swap_interval != 0;
717 }
718 }
719
720 static void SetUpdateFrequency(HEngine engine, uint32_t frequency)
721 {

Callers 2

engine.cppFile · 0.70
DispatchFunction · 0.70

Calls 2

MaxFunction · 0.50

Tested by

no test coverage detected