Give the water and floor surfaces' fixed-step remainders as many slots as the waters' ripples.

Every interactive floor of a place and both water managers ask frame_rate_sim_host once an update, each for its own
object. With 8 slots, a place with more such objects than that had them take each other's slot in turn, start
without a remainder every update and stand still above 60 fps, as before the set owater. The table now has 64 slots,
as the ripples' has, and frame_step_check runs 32 surfaces at 144 fps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-13 05:46:58 -05:00
parent 2f7ddc884b
commit f512a98988
2 changed files with 14 additions and 1 deletions

View File

@@ -584,7 +584,10 @@ void frame_rate_water_host(Cpu *c) {
// that is not positive, or too large for a count, stays for the cut. The remainders are in a table of their own: an
// object that shares slots with the counters above would lose its fraction to them.
// NX2NAVI_TRACE=perf: every 10 s, the steps the objects were given beside those the cut alone would have given.
#define SIM_SLOTS 8
// Every interactive floor of a place (the Deku Tree's ground webs are such floors) and both water managers ask once an
// update, each for its own object, so the table holds as many as the waters' does: with fewer slots than objects each
// would take another's slot in turn, start without a remainder every update and stand still again above 60 fps.
#define SIM_SLOTS 64
static WholeSlot sim_slot[SIM_SLOTS];
void frame_rate_sim_host(Cpu *c) {