implement fps limiter

This commit is contained in:
ohyzha
2024-08-23 17:05:06 +03:00
parent 97bc667e0b
commit f002ea2eca
4 changed files with 40 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ namespace OpenVulkano
bool m_preferFramebufferFormatSRGB = true;
bool m_lazyRendering = false;
bool m_vSync = false;
int32_t m_fpsCap = -1; // -1 = no fps cap. 0 = fps cap if vsync, no cap otherwise. > 0 = set fps cap
int32_t m_fpsCap = 500; // -1 = no fps cap. 0 = fps cap if vsync, no cap otherwise. > 0 = set fps cap
#ifdef __APPLE__
uint32_t m_preferredImageCount = 3;
#else