move some options from swap chain to engine configuration and fix not working VSync

This commit is contained in:
ohyzha
2024-07-22 11:07:33 +03:00
parent bc02c0e937
commit 6ed4136393
5 changed files with 55 additions and 29 deletions

View File

@@ -42,6 +42,8 @@ namespace OpenVulkano
auto engineConfig = OpenVulkano::EngineConfiguration::GetEngineConfiguration();
engineConfig->SetNumThreads(4);
engineConfig->SetPreferFramebufferFormatSRGB(false);
engineConfig->SetFpsCap(0); // monitor's refresh rate
engineConfig->SetVSync(true);
std::srand(1); // Fix seed for random numbers
m_scene.Init();