mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-21 12:19:58 -04:00
Show Prepare the Shaders moving in the launcher: the game prints its counts and the step sends them on.
The step sat at 0 % until it was done, an hour on some PCs, because nothing it ran reported progress to the launcher. nx2navi.exe --prepare-shaders now prints how many shaders it has translated and how many it has built into the driver's cache every 2 s. make_game.py reads them as they come and fills the bar, the translation the first half and the build the second, with the counts in the step's text. An event every 10 s keeps the text current while nothing is printed, and after 3 minutes without a count moving it says so, and that the step is still running. The selftest draws the step as a tenth screen. Its made-up update was version 0.3.11, so from 0.4.0 on the update-ready screen showed Up to Date and was no longer drawn; it is now a minor version past the launcher running it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BSHQpLnScF9sNv4LNAaaS3
This commit is contained in:
@@ -221,6 +221,8 @@ class Job:
|
||||
self.skip(sid, 'Kept' if sid in ('exefs', 'romfs') else 'Unchanged')
|
||||
if link_step and sid in ('compile', 'compile_changed'):
|
||||
self.skip(link_step, 'Unchanged')
|
||||
elif kind == 'progress' and sid and 'fraction' in ev: # a step that words its own progress (shaders)
|
||||
self.progress(sid, float(ev.get('fraction') or 0), ev.get('detail', ''))
|
||||
elif kind == 'progress' and sid:
|
||||
done, total, unit = ev.get('done', 0), max(ev.get('total', 1), 1), ev.get('unit', '')
|
||||
if unit == 'bytes':
|
||||
|
||||
Reference in New Issue
Block a user