Repository navigation
v0.0.21
repsp v0.0.21
GL 텍스처 캐시: 사용자 RAM의 텍스처 내용 해시.
| issue | 내용 | 커밋 |
|---|---|---|
| #43 | gl_backend.cpp의 HashGuestRange는 VRAM 시작 주소 이상이면 VRAM으로 보고, 상한 검사가 없어 사용자 RAM(0x08000000 이상) 주소에 대해 늘 0을 돌려줬다. 그래서 사용자 RAM에 있는 CLUT 아닌 텍스처는 내용 해시 0으로 캐시됐다. 같은 주소·크기·형식에 새 내용이 들어와도 옛 텍스처를 계속 썼다(한 게임에서 다음 화면에 이전 화면의 이미지가 나옴). 이제 GuestMemory::IsValidAddress로 범위를 확인하고 변환한 바이트를 해시한다. gl_probe가 사용자 RAM 텍스처를 덮어쓰고 다시 그리는 경우를 검사한다. |
이 릴리스의 squash merge 커밋 |
검증: Win64(Visual Studio) Release, Linux x64 Debug/Release 빌드와 CTest 22/22. 표시 간격은 이전과 같은 범위다.
repsp v0.0.21
GL texture cache: content hashes for textures in user RAM.
Issue #43: HashGuestRange in gl_backend.cpp treated any address at or above the VRAM base as VRAM. With no upper bound, it always returned 0 for user RAM addresses (0x08000000 and up). Non-CLUT textures there were therefore cached with content hash 0, and new contents at the same address, size and format kept the old texture (one title showed the previous screen's image on the next screen).
It now checks the range with GuestMemory::IsValidAddress and hashes the translated bytes. gl_probe covers overwriting a user-RAM texture and redrawing it.
Verified: Win64 (Visual Studio) Release, and Linux x64 Debug/Release, build and CTest 22/22. Presentation intervals are in the same range as before.