mirror of https://github.com/AxioDL/metaforce.git
Add cvar for when commit resources is done lazily
This commit is contained in:
parent
d2ae2b3818
commit
2ad2a5cfa9
|
@ -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};
|
||||
|
|
|
@ -27,6 +27,7 @@ struct CVarCommons {
|
|||
CVar* m_texAnisotropy = nullptr;
|
||||
CVar* m_deepColor = nullptr;
|
||||
CVar* m_variableDt = nullptr;
|
||||
CVar* m_lazyCommitResources = nullptr;
|
||||
|
||||
CVar* m_debugOverlayPlayerInfo = nullptr;
|
||||
CVar* m_debugOverlayWorldInfo = nullptr;
|
||||
|
|
|
@ -24,6 +24,9 @@ CVarCommons::CVarCommons(CVarManager& manager) : m_mgr(manager) {
|
|||
m_variableDt = m_mgr.findOrMakeCVar(
|
||||
"variableDt", "Enable variable delta time (experimental)", false,
|
||||
(hecl::CVar::EFlags::System | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::ModifyRestart));
|
||||
m_lazyCommitResources = m_mgr.findOrMakeCVar(
|
||||
"lazyCommitResources"sv, "Enable lazy commiting resources to GPU", true,
|
||||
(hecl::CVar::EFlags::System | hecl::CVar::EFlags::Archive));
|
||||
|
||||
m_debugOverlayPlayerInfo = m_mgr.findOrMakeCVar(
|
||||
"debugOverlay.playerInfo"sv, "Displays information about the player, such as location and orientation"sv, false,
|
||||
|
|
Loading…
Reference in New Issue