Repository navigation
v0.0.22
repsp v0.0.22
GE 멈춤 지점 비교를 물리 주소로 하고, GL 텍스처 해시 비용을 줄였다.
| issue | 내용 | 커밋 |
|---|---|---|
| #45 | 게임이 명령 목록과 멈춤 지점을 비캐시 주소(0x4…)로 넘기면, 목록 안의 점프는 버스 주소(0x08…)로 이동한다. 그래서 list == stall 비교가 맞지 않았고, GE가 멈춤 지점을 지나 이전 프레임의 남은 명령까지 실행했다(한 게임의 화면 전환에서 노이즈 한 프레임). 이제 목록 위치, 멈춤 지점, 점프·호출 대상을 29비트 물리 주소로 접어 비교한다. ge_probe가 이 경우를 검사한다. |
이 릴리스의 squash merge 커밋 |
| #46 | v0.0.21부터 사용자 RAM 텍스처를 해시하는데, 그리기마다 텍스처 전체를 바이트 단위로 훑어 게스트 스레드가 굶었다(한 게임의 음악 스트리밍 끊김). 해시를 8바이트 단위로 바꿨다. 또 현재 epoch에 해시한 텍스처는 다시 해시하지 않는다. epoch는 flush 때와, 게스트 코드가 돌았을 수 있을 때마다 넘어간다. 후자는 새 RenderBackend::guest_memory_may_have_changed이며, GE 해석기가 CPU가 돈 뒤 목록을 다시 시작할 때와 양보한 뒤에 부른다. gl_probe가 해시한 바이트 수를 검사한다. |
이 릴리스의 squash merge 커밋 |
측정(한 게임, 창 모드): 전환 노이즈 프레임이 없어졌다. 곡 선택 화면의 음악 채널 언더런은 1,981에서 68이 됐고, 표시 간격은 27.4 ms에서 19.8 ms가 됐다. 사용자가 확인했다.
검증: Win64(Visual Studio) Debug/Release, Linux x64 Debug/Release 빌드와 CTest.
repsp v0.0.22
GE stall comparison on physical addresses, and cheaper GL texture hashing.
Issue #45: when a game passes uncached addresses (0x4…) for the list and stall, jumps inside the list go to bus addresses (0x08…). list == stall then never matched, and the GE ran past the stall into stale commands from an earlier frame (one noise frame at a title's screen transition). List pointers, stall addresses and jump/call targets are now folded to the 29-bit physical address before comparing. ge_probe covers this case.
Issue #46: since v0.0.21, user-RAM textures are hashed, but byte by byte over the whole texture on every draw. This starved guest threads (a title's music streaming stuttered). Changes:
- The hash now reads 8-byte words.
- A texture already hashed in the current epoch is not hashed again.
- The epoch advances at every flush, and whenever guest code may have run. The latter is signalled by the new
RenderBackend::guest_memory_may_have_changed, which the GE interpreter calls when a list restarts after the CPU ran and after each yield. gl_probechecks the number of bytes hashed.
Measured (one title, windowed):
- The transition noise frame is gone.
- Song-select music channel underruns went from 1,981 to 68.
- The presentation interval went from 27.4 ms to 19.8 ms.
Confirmed by the user.
Verified: build and CTest pass on Win64 (Visual Studio) Debug/Release and Linux x64 Debug/Release.