Repository navigation
JSRF Unleashed NX v0.5.4-switch
v0.5.4-switch
A freeze fix on top of v0.5.3. Same feature set and same
performance profile as v0.5.3; the version stamp now also
reads correctly in game ("0.5.4-switch"). What changed is
the handling of one hard freeze reported in issue #2.
The freeze
In busy rendering moments (a push-buffer request of 32 KB or
more), D3D's make-space path inserts a marker into the push
buffer and sleeps on the "busy block" event until the GPU
callback sets it. In the reported freezes that set never
arrived: the main thread slept forever while the picture
stopped and the audio kept looping. The wake can be lost at
any of three steps -- dropped before delivery, missed on
the way, or acknowledged without the set taking effect --
and the wait has no timeout, so any of them is fatal.
What this build changes
- The wake can no longer be dropped. The delivery queue
for these GPU callbacks used to drop a wake silently when
it filled up. The busy-block wake now parks in a dedicated
slot and is delivered at the first free space instead. - The wait recovers itself if a wake is ever lost. A
watchdog inside the wait watches for exactly this stuck
state: the make-space wait inside for a second, nothing
left in flight or queued, and the push buffer fully
drained (the GPU has consumed everything, so the block
being waited on is in fact free). When all of that holds,
it sets the event the lost callback was supposed to set
and logs a [FREEZE-FIX] line. So in the stuck state seen
in the report, the freeze now self-recovers instead of
hanging for good. This is a recovery for the observed
state, not a proof the freeze can never recur in some
other form. - Better freeze reports. If a freeze does happen, the
log now names the exact wait object, whether its signal
ever arrived, and the delivery-queue state, so the next
report separates the remaining causes in one read. A
second, distinct stall seen in the same report (a
loading-screen lock pile-up) also gets its missing datum:
the report now names the critical section and its owner
for long waits of that kind. That second stall is not
fixed by this build; it is diagnosable from one log now.
One deeper redesign was evaluated and deliberately not
taken: modelling the GPU's interrupt registers the way the
console hardware behaves (from spriteice's JSRF-PC) would
remove a whole class of lost wakes, but it reaches across
the interrupt, MMIO and frame-pacing machinery rather than
one contained path, so it was scoped and left for its own
change rather than folded into this fix.
Installing
Unzip and copy the switch folder to the root of your SD
card, merging with the existing folder (see
READ-ME-FIRST.txt inside the zip). A fresh install works the
same way; your saves and settings in the existing folder
are kept when you merge.