diff options
| author | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-31 10:16:50 -0400 |
|---|---|---|
| committer | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-31 10:16:50 -0400 |
| commit | 574517814d1e2eed1d717fe6898a486bbebf3e3e (patch) | |
| tree | e0fd1048251fdf81f2531b4ff8c0791a0018b13d /src/core | |
| parent | 8ac95d5e42fc571279eede89bfd0a4f83d2783d2 (diff) | |
nx2: free decoder output images on gsv 912
912 is the video group's x12 command: it frees one decoder output image
(Switch Sports frees its four when its menu movie ends). Unlisting the image stops
the decode thread writing frames into memory the game then reuses.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/nx2_gsv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/nx2_gsv.h b/src/core/hle/service/nx2_gsv.h index 9d00b81368..66f0518d5a 100644 --- a/src/core/hle/service/nx2_gsv.h +++ b/src/core/hle/service/nx2_gsv.h @@ -1893,6 +1893,10 @@ public: {1291, &INx2GraphicsSystemSession::CalculateChatImagePoolSize, "CalculateChatImagePoolSize (guessed)"}, {911, &INx2GraphicsSystemSession::CreateDecoderImage, "CreateDecoderImage"}, + // 912(u32 image id): the video group's x12, freeing one decoder output image (Switch + // Sports frees its four when its movie ends). Unlisting it stops the decode thread + // writing frames into memory the game reuses. + {912, &INx2GraphicsSystemSession::DestroyNativeImage, "DestroyDecoderImage"}, {961, &INx2GraphicsSystemSession::GetCpuImageDescriptor, "GetCpuUserImageDescriptor"}, }); } |
