| 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 | { |
no test coverage detected