mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 23:59:59 -04:00
Profiler: unwind through vendor DLLs only while they are pinned, so slow-frame captures no longer crash at start.
NX2NAVI_PROFILE_SLOW unwound threads in any module, and one being unloaded while the game started (a driver or vendor DLL) had its unwind tables freed under the sampler. The exe and the system DLLs are walked freely; any other module is held with GetModuleHandleEx for the step, and one that is unloading ends the chain. The block-linear copy probe gains two cases of 256 KiB and more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,9 @@ static int test_deswizzle(void) {
|
||||
for (unsigned td = 1; td <= 3; td++) // 3D: depth 5 against block depths 2, 4, 8
|
||||
for (unsigned th = 0; th <= 2; th++)
|
||||
if (check_swizzle(23 * 4, 19, 5, th, td, 4)) return 1;
|
||||
// levels of 256 KiB and more
|
||||
if (check_swizzle(1000 * 4, 300, 1, 4, 0, 4)) return 1;
|
||||
if (check_swizzle(97 * 16, 70, 9, 2, 2, 16)) return 1;
|
||||
|
||||
// Through a descriptor: RGBA8 2D with mip levels, level 1 and 2, layer 0, against the reference on the same geometry.
|
||||
nvn_texdesc d = {.target = 1, .format = 0x25, .width = 200, .height = 150, .depth = 1, .levels = 4};
|
||||
|
||||
Reference in New Issue
Block a user