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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user