Allow redraw requests during rendering
This commit is contained in:
@@ -195,6 +195,7 @@ namespace OpenVulkano
|
|||||||
auto start = clock::now();
|
auto start = clock::now();
|
||||||
inputManager->Tick();
|
inputManager->Tick();
|
||||||
app->Tick();
|
app->Tick();
|
||||||
|
CURRENT_FRAME.needsRedraw = !EngineConfiguration::GetEngineConfiguration()->GetLazyRendering();
|
||||||
if (CURRENT_FRAME.needsRedraw) renderer->Tick();
|
if (CURRENT_FRAME.needsRedraw) renderer->Tick();
|
||||||
if (cappedFrameTime.count())
|
if (cappedFrameTime.count())
|
||||||
{
|
{
|
||||||
@@ -204,7 +205,6 @@ namespace OpenVulkano
|
|||||||
UpdateFps();
|
UpdateFps();
|
||||||
CURRENT_FRAME.frameId = frameCount;
|
CURRENT_FRAME.frameId = frameCount;
|
||||||
CURRENT_FRAME.frameTime = frameTimer.GetTickSeconds();
|
CURRENT_FRAME.frameTime = frameTimer.GetTickSeconds();
|
||||||
CURRENT_FRAME.needsRedraw = !EngineConfiguration::GetEngineConfiguration()->GetLazyRendering();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user