mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 04:49:57 -04:00
Fix what the 0.6.0 review found, and ship DLSS Frame Generation in the launcher release.
The commit census of the perf trace walked the address space on the presenting thread outside mem_census, which brought back the hitch mem_census was added to remove; it now runs only with mem_census = 1. DLSS's output pass at the mode's share fell back to no pass at all when the scene was not at that share (the first presents, a dynamic resolution step): after such a frame the first pass wider than the scene is taken again for 120 frames. The launcher's nx2navi.ini editor no longer rewrites a file it cannot read, keeps the byte order mark and bytes that are not UTF-8, reads an empty line as the game does, and leaves no temporary file behind. The build kit carries the two modules build_game.py imports on Linux, the Linux steps list the right packages and Python, and stale comments and notes are corrected (Discord on by default, two prebuild threads, Enhanced HDR gone). DLSS Frame Generation needs nx2navi_dlssg.dll, NVIDIA Streamline's runtime and nvngx_dlssg.dll beside the game, which no release carried, so the menu offered it and the game turned it off. tools/make_launcher.py --dlssg and --streamline put them with their licences and a notice in the release's bin/dlssg/, and tools/make_game.py place_dlssg copies the whole set beside the game. THIRD_PARTY_NOTICES.md has the row; the notes and README say RTX 40 and 50. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -590,14 +590,20 @@ class App:
|
||||
|
||||
def discord_row(self, game_dir):
|
||||
"""The game's discord_rpc setting (runtime/discord_rpc.c), kept in the game's nx2navi.ini as the game's own
|
||||
menu keeps it; the game reads it when it starts. On unless the file says 0, as the game reads it (cfg_bool, default
|
||||
on)."""
|
||||
menu keeps it; the game reads it when it starts. On unless the file says 0, as the game reads it (cfg_bool,
|
||||
default on)."""
|
||||
def on(v):
|
||||
try:
|
||||
gameini.put(game_dir, 'discord', 'discord_rpc', '1' if v else '0')
|
||||
except OSError as e:
|
||||
self.message = f'The game\'s settings could not be written: {e}'
|
||||
return Row('toggle', 'Discord Status', on=on, get=lambda: gameini.get(game_dir, 'discord_rpc') != '0',
|
||||
|
||||
def get():
|
||||
try:
|
||||
return gameini.get(game_dir, 'discord_rpc') != '0'
|
||||
except OSError: # nx2navi.ini there but unreadable: the game's default
|
||||
return True
|
||||
return Row('toggle', 'Discord Status', on=on, get=get,
|
||||
desc=('Show "Playing NX2navi" with your play time in your Discord status while the game runs. '
|
||||
'The game\'s menu switches it too (Game tab).',))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user