Make djui run at 60fps in the pause menu again
This commit is contained in:
parent
2745fb3383
commit
3dab069f87
|
@ -25,7 +25,7 @@ void patch_djui_before(void) {
|
||||||
|
|
||||||
void patch_djui_interpolated(UNUSED f32 delta) {
|
void patch_djui_interpolated(UNUSED f32 delta) {
|
||||||
// reset the head and re-render DJUI
|
// reset the head and re-render DJUI
|
||||||
if (delta >= 0.5f && !sDjuiRendered60fps && gDjuiInMainMenu) {
|
if (delta >= 0.5f && !sDjuiRendered60fps && (gDjuiInMainMenu || gDjuiPanelPauseCreated)) {
|
||||||
sDjuiRendered60fps = true;
|
sDjuiRendered60fps = true;
|
||||||
if (sSavedDisplayListHead == NULL) { return; }
|
if (sSavedDisplayListHead == NULL) { return; }
|
||||||
gDisplayListHead = sSavedDisplayListHead;
|
gDisplayListHead = sSavedDisplayListHead;
|
||||||
|
|
|
@ -597,7 +597,7 @@ static struct LuaObjectField sGraphNodeObjectFields[LUA_GRAPH_NODE_OBJECT_FIELD_
|
||||||
{ "sharedChild", LVT_COBJECT_P, offsetof(struct GraphNodeObject, sharedChild), false, LOT_GRAPHNODE },
|
{ "sharedChild", LVT_COBJECT_P, offsetof(struct GraphNodeObject, sharedChild), false, LOT_GRAPHNODE },
|
||||||
{ "skipInterpolationTimestamp", LVT_U32, offsetof(struct GraphNodeObject, skipInterpolationTimestamp), false, LOT_NONE },
|
{ "skipInterpolationTimestamp", LVT_U32, offsetof(struct GraphNodeObject, skipInterpolationTimestamp), false, LOT_NONE },
|
||||||
// { "throwMatrix", LVT_???, offsetof(struct GraphNodeObject, throwMatrix), false, LOT_??? }, <--- UNIMPLEMENTED
|
// { "throwMatrix", LVT_???, offsetof(struct GraphNodeObject, throwMatrix), false, LOT_??? }, <--- UNIMPLEMENTED
|
||||||
// { "throwMatrixPrev", LVT_???, offsetof(struct GraphNodeObject, throwMatrixPrev), false, LOT_??? }, <--- UNIMPLEMENTED
|
// { "throwMatrixPrev", LVT_???, offsetof(struct GraphNodeObject, throwMatrixPrev), false, LOT_??? }, <--- UNIMPLEMENTED
|
||||||
{ "unk4C", LVT_COBJECT_P, offsetof(struct GraphNodeObject, unk4C), false, LOT_SPAWNINFO },
|
{ "unk4C", LVT_COBJECT_P, offsetof(struct GraphNodeObject, unk4C), false, LOT_SPAWNINFO },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue