mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-20 01:49:59 -04:00
Grow the render-target heap for the scene's share only where the start's mode needs it, and never past the pool.
The heap grew by the full-picture factor whenever the upscaler setting was on, in every mode, and without a limit: 915 MiB at 3840x2160 where the modes below three quarters need 382, and at 10240x2880 an application pool of 13.5 GiB, past the 12 GiB heap region, where the game's SetHeapSize is refused and nothing starts. The share is now the start's own mode: all of the picture for dlaa, the game's own most for the modes below it. The growth stops at what the pool can take (2,478 MiB): the scene's share is lowered to what fits, with a log line, and a picture too large even for the game's own scene gets the most there is and a warning. A mode chosen in the menu that renders more than the start's keeps the start's share until a restart, as the log and nx2navi.ini.example now say. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -364,6 +364,9 @@ void wide_present(void); // each present: DLS
|
||||
int wide_available(void); // the generated C has the widescreen sets
|
||||
void wide_picture(unsigned *w, unsigned *h); // the picture the game draws (its scene is never larger)
|
||||
uint64_t wide_heap_extra_kib(void); // the texture heap's growth for the widescreen picture
|
||||
// The most res_heap_extra_kib may be (memory.c): with more the application pool passes the heap region and the
|
||||
// game's own SetHeapSize is refused. A whole number of 2 MiB.
|
||||
uint64_t mem_heap_extra_max_kib(void);
|
||||
void res_init(void); // after rt_patches_init: the patch page and the sets
|
||||
float res_dlss_lod_bias(void); // NX2NAVI_DLSS upscaling: texture LOD bias (<= 0)
|
||||
int res_dlss_mode(const char *mode); // NX2NAVI_DLSS changed while running: new scene size
|
||||
|
||||
Reference in New Issue
Block a user