The built-in menu mod goes over its 5 ms frame-listener budget while a settings page is built (settingsHost.decls) and is stopped #3185
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#3185
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The built-in
system/menumod goes over the 5 ms CPU budget of itslongshot/gameframe listener while the menu is in use. After 3 faults in a minute the script runtime stops it: the menu is gone for 5 s, starts again by itself, then faults again. It happened in two play sessions, on a fast desktop CPU, so a slower CPU (the Steam Deck) is likely to hit it more often.Longshot version
longshot v3.2.0-358-g1bd6276ed (source 0ff03798), a local build: mainb77c2f4b3with #3081, #3117, #2129, #2135, #2029 and #2240 merged on top (a performance test). None of those touchgame/or the mods. Not yet reproduced on plain main.What happened
Playing normally with the in-game menu open now and then. In one session the log has 5 faults and one stop (the first four shown; the fifth came later, again a 5.0 ms frame):
An earlier session on the same build had one fault (5.2 ms) and per-frame warnings of 2.2, 3.0 and 4.7 ms.
What the lines show:
settingsHost.declscall of 1.3-1.8 ms (up to 5.0 ms on the wall clock once), plus 3.2-3.9 ms of the menu's own JavaScript. They look like the frame where a settings page is built.game/crates/script/src/runtime.rs:767). A frame of 5.0-5.2 ms is only a warning by the first rule, yet a fault by the second.Expected: opening or paging the built-in menu never faults, and it does not stop.
Where in the game
The in-game menu (Insert), in Hyrule Field, child Link (the session also went through Hyrule Castle, Kakariko Village and the Graveyard).
How often
6 faults in two sessions; the menu was stopped once.
Graphics card and driver version
AMD Radeon RX 9070 XT, Adrenalin 26.11.2.
CPU, RAM and operating system
AMD Ryzen 7 5700X3D (8 cores, 16 threads), 64 GB, Windows 11.
Changes from the defaults
5120x1440 fullscreen (ultrawide), AMD FSR 4 Native AA, Skip Upscaler Wait off. No
longshot_env.txt, no overlay or injector.Possible directions (not tried)
settingsHost.declscheaper: cache the declarations or hand them over once.🤖 Generated with Claude Code
This exact
system/menuframe-budget fault was fixed in PR #3098, which cachessettingsHost.declsand other settings-menu work. The fix is in nightly-1047-76092c5e; your build (3.2.0-358) predates it. Please try a build containing that change and check whether the menu still faults. The PR's test specifically opens the Insert menu and visits its tabs and submenus, verifying there are nosystem/menufault or stop lines.If that doesn't solve it, say what happened (and attach your log); a maintainer takes it from there.
For maintainers
PR #3098 directly addresses the reported
settingsHost.decls/ system/menu 5 ms frame faults. It was merged 2026-12-03 and first appears in nightly-1047-76092c5e; reported local build 3.2.0-358 is older.Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.