2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 13:47:43 +00:00

Add cvar for when commit resources is done lazily

This commit is contained in:
Henrique Gemignani Passos Lima
2021-06-30 20:27:36 +03:00
parent d2ae2b3818
commit 2ad2a5cfa9
3 changed files with 5 additions and 1 deletions

View File

@@ -397,7 +397,7 @@ public:
m_window->waitForRetrace();
}
OPTICK_FRAME("MainThread");
CGraphics::SetCommitResourcesAsLazy(true);
CGraphics::SetCommitResourcesAsLazy(m_cvarCommons.m_lazyCommitResources->toBoolean());
boo::SWindowRect rect = m_windowCallback.m_lastRect;
rect.location = {0, 0};