2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 17:04:01 +00:00

Support lazy CGraphics::CommitResources

This commit is contained in:
Henrique Gemignani Passos Lima
2021-06-29 23:09:30 +03:00
parent 0b523f98c3
commit d2ae2b3818
4 changed files with 31 additions and 2 deletions

View File

@@ -397,6 +397,7 @@ public:
m_window->waitForRetrace();
}
OPTICK_FRAME("MainThread");
CGraphics::SetCommitResourcesAsLazy(true);
boo::SWindowRect rect = m_windowCallback.m_lastRect;
rect.location = {0, 0};
@@ -465,6 +466,11 @@ public:
m_imGuiConsole.ShowAboutWindow(false, m_errorString);
}
{
OPTICK_EVENT("Flush");
CGraphics::SetCommitResourcesAsLazy(false);
}
{
OPTICK_EVENT("Draw");
gfxQ->setRenderTarget(m_renderTex);