More lazy rendering stuff

This commit is contained in:
Georg Hagen
2024-07-01 21:54:35 +02:00
parent 142c683c7f
commit 9452d061b2
4 changed files with 35 additions and 17 deletions

View File

@@ -141,12 +141,12 @@ namespace OpenVulkano
{
Input::InputManager::GetInstance()->Tick();
app->Tick();
if (CURRENT_FRAME.shouldDraw) renderer->Tick();
if (CURRENT_FRAME.needsRedraw) renderer->Tick();
frameTimer.Tick();
UpdateFps();
CURRENT_FRAME.frameId = frameCount;
CURRENT_FRAME.frameTime = frameTimer.GetTickSeconds();
CURRENT_FRAME.shouldDraw = !EngineConfiguration::GetEngineConfiguration()->GetLazyRendering();
CURRENT_FRAME.needsRedraw = !EngineConfiguration::GetEngineConfiguration()->GetLazyRendering();
}
}