mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 15:59:59 -04:00
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>
23 lines
1.1 KiB
C
23 lines
1.1 KiB
C
// The full performance overlay's panel (ui/perf_panel.cpp), drawn in the settings menu's look: what menu.cpp
|
|
// perf_full_draw gathered, laid out in tables on the menu's framed panel with the game's divider between the sections.
|
|
#pragma once
|
|
#include "imgui.h"
|
|
|
|
extern "C" {
|
|
#include "perfmon.h"
|
|
}
|
|
|
|
typedef struct {
|
|
PerfStats s; // perfmon_snapshot
|
|
const char *version; // "NX2navi <version>, game <update>"
|
|
// window, game image, scene, then the settings as the menu names them: upscaling, frame limit, VSync, widescreen,
|
|
// resolution, HDR, frame generation. An empty string leaves its line out.
|
|
char picture[10][64];
|
|
bool scene_known; // the scene line is shown (resolution.c sets the scene's size)
|
|
float fg_fps; // frames the display gets with frame generation, 0 without it
|
|
bool under_menu; // the menu is open: the panel goes under its window
|
|
} PerfPanel;
|
|
|
|
// The panel at the top right corner of a width-pixel-wide frame.
|
|
void perf_panel_draw(const PerfPanel *p, float width, float scale);
|