Repository navigation
v0.0.27
reDMP1 v0.0.27
채보와 음악이 함께 시작한다(음악 오프셋 0에서 맞음).
| issue | 내용 | 커밋 |
|---|---|---|
| #54 | v0.0.26 이후에도 음악을 약 100 ms 앞당겨야 맞았다. 원인: 게임은 채보 시계를 시작하기 전에, 100 ms마다 요청을 확인하는 음악 스레드를 sceKernelDelayThread(10 µs) 최대 1000번으로 기다린다. repsp에서는 이 1000번이 29 ms만에 끝나 채보가 음악보다 60~70 ms 먼저 시작했다. 채보 시계(ScorePlayerThread의 이벤트 시퀀서)와 이 대기 루프는 게임 코드에서 찾았다(docs/design/20261121-i054-delaythread-minimum.md). repsp v0.0.26이 짧은 대기를 적어도 200 µs로 한다(reexec/repsp#57). 이제 음악 오프셋 기본값 0에서 맞고, 오프셋은 출력 장치 차이를 맞추는 용도다. psprecomp 로컬 패치 0006은 upstream에 제출했다(sp00nznet/psprecomp#38). |
작업 브랜치 i054-music-latency-2의 9dd310f…, 이 릴리스의 squash merge 커밋 |
측정(창 모드, 같은 입력 스크립트): 채보 시작과 음악 첫 블록의 차이 0.3 ms(이전 59 ms), 미발견 주소 dispatch 0, 크래시 0, 표시 간격 평균 18.9 ms. 사용자가 오프셋 0에서 확인했다.
알려진 한계: 다이얼로그를 화면에 그리지 않는다. 세이브 데이터는 평문이다.
검증: Win64 Release(Visual Studio 생성기), Win64 Ninja Debug/Release, Linux x64 Debug/Release 빌드와 CTest 통과.
reDMP1 v0.0.27
Chart and music start together, in time with a music offset of 0.
Issue #54:
- Report: after v0.0.26 the music still needed about 100 ms of offset.
- Cause: before starting its chart clock, the game waits for its music thread, which checks for requests every 100 ms, with up to 1000 calls to
sceKernelDelayThread(10 µs). In repsp those 1000 calls took 29 ms, so the chart started 60-70 ms before the music. - The chart clock (the event sequencer in
ScorePlayerThread) and this wait loop were found in the game code; seedocs/design/20261121-i054-delaythread-minimum.md. - Fix: repsp v0.0.26 makes short delays last at least 200 µs (reexec/repsp#57).
- The music offset is now right at its default of 0, and is for differences between output devices.
- Local psprecomp patch 0006 has been submitted upstream (sp00nznet/psprecomp#38).
Commits from 9dd310f on task branch i054-music-latency-2, squashed into this release's merge commit.
Measured (windowed, same input script):
- Chart start and the first music block 0.3 ms apart (59 ms before).
- No unresolved-address dispatches, no crashes.
- Mean present interval 18.9 ms.
Confirmed by the user with an offset of 0.
Known limits: dialogs are not drawn on screen. Save data is plaintext.
Verified: Win64 Release (Visual Studio generator), Win64 Ninja Debug/Release and Linux x64 Debug/Release, build and CTest.