mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 11:09:56 -04:00
Pass times: log the largest viewport each kind of pass draws with.
A dynamic resolution that keeps its targets at the largest size and draws the scene into part of them shows up as a viewport smaller than the pass; one that resizes its targets shows up in the pass size. NX2NAVI_SCENE_SCALE=33 left the handheld scene pass at 1440x810, so this tells which of the two the game does there. (cherry picked from commit af7abe36b0b15c5a63b354d2870543987d1f4b1a) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3682,6 +3682,10 @@ static VkViewport draw_viewport(VkExec *ex) {
|
||||
if (w < 1) w = 1;
|
||||
if (h < 1) h = 1;
|
||||
VkViewport v = {x, y + h, w, -h, ex->depth_range[0], ex->depth_range[1]}; // the y flip: negative height
|
||||
if (ex->mark) { // NX2NAVI_PASS_TIMES: how much of the pass the draws cover
|
||||
if ((uint32_t)w > ex->mark->vw) ex->mark->vw = (uint32_t)w;
|
||||
if ((uint32_t)h > ex->mark->vh) ex->mark->vh = (uint32_t)h;
|
||||
}
|
||||
vk_dlaa_viewport(ex, &v); // the scene's draws move by the DLAA jitter
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user