mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 23:59:59 -04:00
Raise the frame rate in Kokiri Forest and apply more settings during a run.
The foliage's sun shadows took most of the GPU time: one mesh draw shaded about 1,000 million fragments in the far cascade. The far cascade now shades them at a 2x2 rate, and the two far cascades drop one side of the double-sided cards. At the forest entrance the frame rate went from 18 to about 43 fps on an RX 7900 XT. FSR 3.1, its frame generation and the console mode now take effect without a restart. The full performance overlay lists the settings shown in the options menu. NX2NAVI_GPU_PASSES times each pass and counts its fragments, and NX2NAVI_SET_AT changes settings at a given frame for test runs. Both are off by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -203,11 +203,12 @@ static int movie_cap_hz(void) {
|
||||
// frames, so the two never stack. NX2NAVI_RTSS=0 and frame generation (RTSS would count the generated frames) keep it out.
|
||||
uint64_t frame_step_cap_ns(void) {
|
||||
frame_limit_live();
|
||||
static int rtss = -1;
|
||||
if (rtss < 0) {
|
||||
static int rtss_allowed = -1;
|
||||
if (rtss_allowed < 0) {
|
||||
const char *e = cfg_get("NX2NAVI_RTSS");
|
||||
rtss = !(e && !strcmp(e, "0")) && !vk_fg_wanted();
|
||||
rtss_allowed = !(e && !strcmp(e, "0"));
|
||||
}
|
||||
int rtss = rtss_allowed && !vk_fg_wanted();
|
||||
int movie_hz = movie_cap_hz();
|
||||
static int movie_was, movie_logs;
|
||||
if (!!movie_hz != movie_was) {
|
||||
|
||||
Reference in New Issue
Block a user