VDP2::ClearVRAM never frees background-layer palettes (saturnringlib/srl_vdp2.hpp:1912,1924,1935,1946)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
The bug is in VDP2::ClearVRAM in saturnringlib/srl_vdp2.hpp, around lines 1912, 1924, 1935 and 1946, where each background layer's palette is freed. Read SetBankUsedState and the NBG0–NBG3 TilePalette definitions to see how the mode is chosen. Done when each layer frees its palette using its own TilePalette.GetMode() and no bank is left marked as used after ClearVRAM.
Written by the indexing model from the issue text.
Description
- What this is: ClearVRAM is meant to release the VRAM and the palettes used by the four background layers (NBG0–NBG3).
- Problem: It frees each layer's palette using RBG0's color mode. When RBG0 has no palette, its mode is RGB555, and SetBankUsedState does nothing for that mode, so the bank stays marked as used.
- Fix: Use each layer's own palette: NBG0::TilePalette.GetMode(), and the same for NBG1–NBG3.
- Dominant language
- C++
- Stars
- 90
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ReyeMe/SaturnRingLib
-
bug required hardware test
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ReyeMe/SaturnRingLib#147 ·
-
bug required hardware test
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ReyeMe/SaturnRingLib#146 ·
-
bug required hardware test
Difficulty 1/5 Under an hour Newbie friendliness 82/100
ReyeMe/SaturnRingLib#145 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ReyeMe/SaturnRingLib#144 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ReyeMe/SaturnRingLib#149 ·
All issues in ReyeMe/SaturnRingLib
Similar issues
-
comp-formats
Difficulty 2/5 Half a day Newbie friendliness 64/100
ClickHouse/ClickHouse#131694 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ETSInitiative/PETSIRD#243 ·
Maintainers usually reply within 1 day
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug engine::whispercpp runtime::rocm wg::platform-core
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lemonade-sdk/lemonade#4168 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ROCm/rocm-libraries#15866 ·
Maintainers usually reply within 2 days