Repository navigation
v0.0.27
repsp v0.0.27
텍스처 필터링이 게임 설정을 따르고, 하드웨어 샘플링·밉맵·이방성을 쓴다.
| issue | 내용 | 커밋 |
|---|---|---|
| #59 | 세 가지 결함을 고쳤다. GE가 TFLT(0xC6)를 읽지 않았고, "Original" 옵션은 늘 최근접이었으며, GL 셰이더가 texelFetch로 텍셀 하나를 읽어 어떤 필터 설정도 효과가 없었다(Linear와 이방성 옵션 포함). 그래서 게임이 선형 확대를 요청한 텍스처(예: TFLT 0x000105)가 픽셀 블록으로 보였다. GE 상태: TFLT, TMODE 최대 레벨, 레벨 1~7의 TBP/TBW/TSIZE, TEXLEVEL(모드와 bias)을 읽는다. GL: texture()와 샘플러 객체로 읽는다. Original은 TFLT를 따르고, Linear는 항상 선형이며, 이방성은 GL_TEXTURE_MAX_ANISOTROPY를 쓴다. 게임이 준 밉맵 레벨을 올리고, 게임이 레벨을 주지 않을 때는 이방성에서만 밉맵을 만든다. render-to-texture는 셰이더 bilinear로 읽는다. 소프트웨어 렌더러: TFLT가 선형이면 bilinear(레벨 0만). ge_probe와 gl_probe가 상태, 필터, 레벨, 감싸기, render-to-texture를 검사한다. |
이 릴리스의 squash merge 커밋 |
근사: TEXLEVEL 기울기 모드는 자동+bias로 근사한다. 쓰이지 않는 TFLT 값(2, 3)은 bit 0으로 처리한다.
측정(한 게임, 같은 입력 스크립트 3회): 미발견 주소 dispatch 0, 표시 간격 18.9 ms(이전과 같음), 텍스처 업로드 80회. 사용자가 창 모드에서 확인했다.
검증: Win64(Visual Studio·Ninja) Debug/Release, Linux x64 Debug/Release 빌드와 CTest.
repsp v0.0.27
Texture filtering follows the game, with hardware sampling, mipmaps and anisotropy.
Issue #59:
-
Defects: three were fixed.
- The GE did not decode TFLT (
0xC6). - The "Original" option was always nearest.
- The GL shader read one texel with
texelFetch, so no filter setting had any effect, the Linear and anisotropic options included.
As a result, textures the game asks to magnify linearly (for example TFLT
0x000105) showed their pixel blocks. - The GE did not decode TFLT (
-
GE state: TFLT, TMODE's maximum level, TBP/TBW/TSIZE for levels 1-7, and TEXLEVEL (mode and bias) are decoded.
-
GL:
- Reads go through
texture()and sampler objects. - Original follows TFLT, Linear is always linear, and the anisotropic options use
GL_TEXTURE_MAX_ANISOTROPY. - Game-supplied mip levels are uploaded. When the game supplies none, mipmaps are generated only for anisotropic filtering.
- Render-to-texture is read bilinearly in the shader.
- Reads go through
-
Software renderer: bilinear when TFLT asks for linear (level 0 only).
-
ge_probeandgl_probecheck state, filters, levels, wrapping and render-to-texture.
Approximations:
- TEXLEVEL's slope mode is treated as automatic plus bias.
- Unused TFLT values (2, 3) fall back to bit 0.
Measured (one title, same input script, three runs):
- No unresolved-address dispatches.
- Present interval 18.9 ms, as before.
- 80 texture uploads.
Confirmed by the user in windowed mode.
Verified: build and CTest pass on Win64 (Visual Studio and Ninja) Debug/Release and Linux x64 Debug/Release.