Repository navigation
v0.0.26
reDMP1 v0.0.26
배경음이 노트보다 늦게 들리던 문제와 음악 오프셋 설정.
| issue | 내용 | 커밋 |
|---|---|---|
| #51 | 사용자 보고(2026-11-19): 배경음이 노트보다 늦다. 지난 오디오 수정(v0.0.21)은 원인이 아니었다(수정 전·후 빌드의 배경음 통계가 같다). 원인 네 가지를 repsp v0.0.25에서 고쳤다(blocking 출력 반환 기준, ATRAC 인코더 지연, GL 잠금 대기, 시작 오프셋 API). 남은 차이는 사용자가 맞추도록 Audio 탭에 "Music offset (ms)"(−300~+300, 5 단위)를 넣었다. 양수는 음악을 앞당기고 음수는 늦추며, 다음 곡부터 적용된다. redmp1.ini의 MusicOffsetMs(기본 0)에 저장한다. |
작업 브랜치 i051-music-latency의 ae3f44c…, 이 릴리스의 squash merge 커밋 |
| #52 | 재컴파일 코드는 HLE 호출에서만 게스트 CPU를 넘겨서, HLE 호출 없는 긴 계산이 타이머가 끝난 높은 우선순위 스레드를 막았다(소리 스레드가 최대 1000 ms 늦음). psprecomp 로컬 패치 0006이 모든 뒤로 가는 분기의 PSP_LOOP에서 psp_loop_hook을 부를 수 있게 한다. reDMP1은 1024번에 한 번 스케줄러를 확인한다. upstream에는 아직 제출하지 않았다. 생성 코드를 다시 만들어야 한다(scripts/recomp/regenerate.py). 패치된 allegrexrecomp가 가장 최근 빌드여야 하며, 아니면 ALLEGREXRECOMP로 지정한다. |
작업 브랜치 i051-music-latency의 89e44b0, 이 릴리스의 squash merge 커밋 |
측정(창 모드, 플레이 화면까지 입력 스크립트 3회): 미발견 주소 dispatch 0, 크래시 0, 곡 중간 끊김 0. 늦게 깨어난 스레드는 가장 늦은 경우 6.7 ms였다(수정 전에는 최대 1000 ms). 표시 간격 평균 18.9 ms. 사용자가 오프셋을 맞춰 확인했다.
남은 일: 오프셋 없이도 맞도록 남은 지연(약 100 ms 가운데 호스트 경로 45~70 ms 밖의 부분)을 분석한다.
알려진 한계: 다이얼로그를 화면에 그리지 않는다. 세이브 데이터는 평문이다.
검증: Win64 Release(Visual Studio 생성기), Win64 Ninja Debug/Release, Linux x64 Debug/Release 빌드와 CTest 통과.
reDMP1 v0.0.26
Background music heard later than the notes, and a music offset setting.
- Issue #51:
- Report (user, 2026-11-19): the background music is later than the notes.
- The last audio change (v0.0.21) was not the cause: builds before and after it give the same music statistics.
- repsp v0.0.25 fixes four causes: the blocking output's return threshold, the ATRAC encoder delay, the GL lock wait, and a start offset API.
- Music offset: for the remaining gap, the new Audio tab has "Music offset (ms)" (−300 to +300 in steps of 5). Positive starts the music earlier, negative later, from the next track. It is saved as
MusicOffsetMsinredmp1.ini(default 0). - Commits from
ae3f44con task branchi051-music-latency, squashed into this release's merge commit.
- Issue #52:
- Cause: recompiled code handed over the guest CPU only at HLE calls, so a long computation without one held back a higher-priority thread whose timer had expired (a sound thread ran up to 1000 ms late).
- Fix: local psprecomp patch
0006letsPSP_LOOP, on every backward branch, callpsp_loop_hook. reDMP1 checks the scheduler once every 1024 calls. - Not yet submitted upstream.
- Regenerate the generated code (
scripts/recomp/regenerate.py). The patchedallegrexrecompmust be the most recently built one; otherwise name it withALLEGREXRECOMP. - Commit
89e44b0on task branchi051-music-latency, squashed into this release's merge commit.
Measured (windowed, input script to gameplay, three runs):
- No unresolved-address dispatches, no crashes, no mid-song underruns.
- The latest thread resume was 6.7 ms late, against up to 1000 ms before.
- Mean present interval 18.9 ms.
The user tuned the offset and confirmed.
Still to do: analyse the remaining delay so that no offset is needed. Of about 100 ms, the host path accounts for 45-70 ms; the rest is unexplained.
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.