move some options from swap chain to engine configuration and fix not working VSync
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user