Repository navigation
Releases
reCT3 v0.0.28
reCT3 v0.0.28
이전 릴리스 v0.0.27 이후의 변경입니다(issue #52). 드물게 약 11초씩 되풀이되던 멈춤을 고칩니다. CRI가 safe thread를 깨우는 동안 ADXM 호스트 잠금을 쥐고 있어서, 그 잠금을 기다리는 safe thread와 교착이 났습니다.
해결된 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #52 | CRI safe thread 핸드셰이크(000B3060)와 ADXM 호스트 잠금의 교착 |
7635e72, 이 PR |
바뀐 것
src/game/ct3/decomp/adxm_lock.c:sub_000B3060을 rexbox의 새 C APIrexbox_guest_wait_begin/end로 감싼다. 핸드셰이크가 도는 동안 게스트 잠금이 내려가, safe thread가 서버를 돌고 플래그를 지운다. Xbox에서 우선순위가 올라간 safe thread가 호출자를 선점하던 것과 같은 뜻이다(설계).- rexbox v0.0.30 → v0.0.31(rexbox #87: 위 C API).
- 문서: 설계·작업 지시·작업 로그 i052, 분석
cri-middleware.md§5,decomp/README.md, ARCHITECTURE.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release | 경고 0(D9025 제외), CTest 7/7 |
| 숨긴 데모 6개 동시 실행 | 수정 전 48번 중 교착 1번 → 수정 후 48번 중 0번 |
| 주행 | 59.5~59.8 fps, 이상 없음 |
알려진 한계
- 효과음 스트림이 드물게 멈춘다(기존). 영상 구간의 null 간접 호출
000C967E(기존). - 이 버전으로 올린 뒤
git submodule update와scripts/recomp/regenerate.py를 다시 실행해야 한다(새 대체 함수000B3060). - Windows Defender가 빌드한
rect3.exe를Trojan:Win32/Bearfoos.B!ml(머신러닝 판정)로 오탐할 수 있다. 빌드 폴더를 제외에 두면 된다.
reCT3 v0.0.28 (English)
Changes since v0.0.27 (issue #52). Fixes a rare stop that repeated for about 11 s at a time: CRI held the ADXM host lock while waking its safe thread, which deadlocked with the safe thread waiting for that lock.
Issue: #52, the deadlock between CRI's safe-thread handshake (000B3060) and the ADXM host lock (7635e72, this PR).
Changes:
src/game/ct3/decomp/adxm_lock.cwrapssub_000B3060in rexbox's new C APIrexbox_guest_wait_begin/end. While the handshake spins the guest locks are down, so the safe thread runs its server and clears the flag: the same meaning as the raised safe thread preempting the caller on the Xbox (design).- rexbox v0.0.30 → v0.0.31 (rexbox #87: the C API above).
- Documents: design, work order and work log i052, the analysis
cri-middleware.mdsection 5,decomp/README.md, ARCHITECTURE.
Verified: Win32 x86 Release with no warnings (apart from D9025), CTest 7/7. Six hidden demos in parallel: one deadlock in 48 runs before the fix, none in 48 after. A drive: 59.5–59.8 fps, no issues.
Known limits:
- Effect streams rarely stop (existing); the null indirect call
000C967Ein the movie (existing). - After moving to this version, run
git submodule updateandscripts/recomp/regenerate.pyagain (new replacement000B3060). - Windows Defender may flag the built
rect3.exeasTrojan:Win32/Bearfoos.B!ml(a machine-learning verdict); excluding the build folder avoids it.
reCT3 v0.0.27
reCT3 v0.0.27
이전 릴리스 v0.0.26 이후의 변경입니다(issue #51). lifter xboxrecomp를 v0.18.0으로 올립니다. CT3에서는 생성 결과가 기능상 v0.17.0과 같아서, 동작은 바뀌지 않습니다.
해결된 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #51 | xboxrecomp v0.18.0 적용 검토와 적용 | 이 PR |
바뀐 것
third_party/xboxrecomp: upstream v0.17.0 → v0.18.0(37b61d5, "Wrong Grain").- 생성 C에서 바뀐 것은 41개 함수의 57줄이다. x87 초월 함수(
fpatan·fyl2x·f2xm1)가recomp_atan2·recomp_log2·recomp_expm1래퍼를 부르고, 기본 설정에서는 같은 libm 호출로 inline된다. 나머지는fnclex주석 문구다. - v0.18.0이 새로 lift하는 명령(xmm 정수 비트 연산, xmm
movq, x87 스택 포인터)과 FCMOV·재동기 수정은 CT3에 해당하는 곳이 없다. - 함수, 경계, override, dispatch, 미구현 목록은 같다.
- 생성 C에서 바뀐 것은 41개 함수의 57줄이다. x87 초월 함수(
- 문서: 설계·작업 지시·작업 로그 i051, 버전을 적은 문서(README, PROJECT_CHARTER, THIRD_PARTY_NOTICES, ARCHITECTURE, Win32 가이드).
- #49가 남긴 Windows 기계의 Win32 x86 빌드·실행 확인을 이번 검토에서 마쳤다.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release | 경고 0(D9025 제외), CTest 7/7 |
| 생성 | 오류 0. 고정을 올린 뒤의 생성물이 실험 생성물과 경로 주석을 빼면 같다 |
| 숨긴 데모 6개 동시 실행 | v0.17.0 24번 멈춤 0, v0.18.0 24번 중 1번은 기존 경쟁(#52) |
| 주행 | 59.4~59.8 fps, 이상 없음 |
알려진 한계
- #52: CRI safe thread 깨우기(
000B3060)가 ADXM 호스트 잠금을 쥔 채 돌아, 드물게 약 11초씩 멈춘다(xboxrecomp와 상관없는 기존 경쟁). - 이 버전으로 올린 뒤
git submodule update와scripts/recomp/regenerate.py를 다시 실행해야 한다. - Windows Defender가 빌드한
rect3.exe를Trojan:Win32/Bearfoos.B!ml(머신러닝 판정)로 오탐할 수 있다. 빌드 폴더를 제외에 두면 된다.
reCT3 v0.0.27 (English)
Changes since v0.0.26 (issue #51). The lifter xboxrecomp moves to v0.18.0. For CT3 the generated result is functionally the same as v0.17.0's, so behavior does not change.
Issue: #51, reviewing and adopting xboxrecomp v0.18.0 (this PR).
Changes:
third_party/xboxrecomp: upstream v0.17.0 → v0.18.0 (37b61d5, "Wrong Grain").- 57 lines in 41 functions of the generated C changed: the x87 transcendentals (
fpatan,fyl2x,f2xm1) call therecomp_atan2,recomp_log2andrecomp_expm1wrappers, which inline to the same libm calls by default; the rest is the wording of anfnclexcomment. - The instructions v0.18.0 newly lifts (xmm integer bitwise, xmm
movq, x87 stack pointer) and the FCMOV and resync fixes have no site in CT3. - Functions, bounds, overrides, the dispatch and the unimplemented list are the same.
- 57 lines in 41 functions of the generated C changed: the x87 transcendentals (
- Documents: design, work order and work log i051, and the documents that name the version (README, PROJECT_CHARTER, THIRD_PARTY_NOTICES, ARCHITECTURE, the Win32 guide).
- The Win32 x86 build and run on a Windows machine that #49 left open was done in this review.
Verified: Win32 x86 Release with no warnings (apart from D9025), CTest 7/7. Generation without errors; after moving the pin the output equals the experiment's apart from path comments. Six hidden demos in parallel: v0.17.0 no stops in 24 runs, v0.18.0 one in 24, an existing race (#52). A drive: 59.4–59.8 fps, no issues.
Known limits:
- #52: CRI's safe-thread wake-up (
000B3060) spins holding the ADXM host lock, so the game rarely stops for about 11 s at a time (an existing race unrelated to xboxrecomp). - After moving to this version, run
git submodule updateandscripts/recomp/regenerate.pyagain. - Windows Defender may flag the built
rect3.exeasTrojan:Win32/Bearfoos.B!ml(a machine-learning verdict); excluding the build folder avoids it.
reCT3 v0.0.26
reCT3 v0.0.26
이전 릴리스 v0.0.25 이후의 변경입니다(issue #49). lifter를 upstream xboxrecomp v0.17.0으로 올립니다. 생성 코드가 원본 x86에 더 가까워지고(호출 경계를 넘는 플래그, 함수가 끝날 때 호출자의 EBP 복원, 시프트 횟수 마스크 등), 미구현 명령이 실행되면 런타임이 보고합니다.
진행한 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #49 | xboxrecomp v0.17.0 적용 검토(조건부 적용 판단)와 적용, D3DXMatrixInverse decomp의 끝 EBP 수정 | 5d8b8de, bb941d0, 81a2929, 998bf6d, 86867b7 |
바뀐 것
- submodule:
third_party/xboxrecomp를 upstream v0.15.0(6376eb8)에서 v0.17.0(343b6d8)으로 올린다. - decomp:
sub_000E4CB7(D3DXMatrixInverse)이 끝날 때g_ebp·g_seh_ebp를 호출자의 EBP로 되돌린다. v0.15.0의 lift는 이 함수의 프레임을 남겼고 decomp가 그것에 맞춰져 있었다. 둘은 함께 바뀌어야 한다. - 생성 결과(일본판): 함수 4,932 → 4,917, C 717,737 → 672,296줄, 미구현 명령 22 → 16곳(이제
[recomp] untranslated instruction으로 보고), 미해결 스텁 0 → 1(sub_001232E1, 호출자 없는 영역). HLE override 257개와check_hle_pops.py결과는 그대로다. - 문서: 설계·작업 지시·작업 로그 i049, ARCHITECTURE, README, PROJECT_CHARTER, THIRD_PARTY_NOTICES, Win32 가이드, 분석
d3dx-matrix.md, 설계 i027 메모.
확인한 것 (Linux 실기: Ubuntu 26.04, GCC 15.2, RTX 4090)
| 구성 | 확인 |
|---|---|
| Linux x64 Release | 경고 0, CTest 7/7. 숨김 100초: 3D 데모 59.8~60.0 fps, 멈춤·[recomp] 보고 없음 |
| Linux x86 Release | 경고 0, CTest 7/7. 숨김 100초(SDL_VIDEO_DRIVER=x11): 3D 데모 59.5~60.0 fps, 멈춤·[recomp] 보고 없음 |
알려진 한계
- 생성 코드가 있는 Win32 x86 빌드·CTest·실행은 확인하지 않았다(Windows 기계 필요). CI는 생성 코드 없이 빌드한다.
- 어트랙트 데모 밖의 장면(주행 등)은 확인하지 않았다.
- 이 버전으로 올린 뒤
git submodule update와regenerate.py를 실행해야 한다.
reCT3 v0.0.26 (English)
Changes since v0.0.25 (issue #49). The lifter moves to upstream xboxrecomp v0.17.0. The generated code gets closer to the original x86 (flags across call boundaries, the caller's EBP restored when a function returns, masked shift counts and more), and the runtime reports an unimplemented instruction when one runs.
Issue: #49, reviewing xboxrecomp v0.17.0 (verdict: adopt with changes) and adopting it, with the closing EBP of the D3DXMatrixInverse decompilation fixed (5d8b8de, bb941d0, 81a2929, 998bf6d, 86867b7).
Changes:
third_party/xboxrecompmoves from upstream v0.15.0 (6376eb8) to v0.17.0 (343b6d8).sub_000E4CB7(D3DXMatrixInverse) restoresg_ebpandg_seh_ebpto the caller's EBP on return; v0.15.0's lift left the function's own frame there and the decompilation matched it. The two move together.- Generated output (Japan build): 4,932 → 4,917 functions, 717,737 → 672,296 lines of C, 22 → 16 unimplemented instructions (now reported as
[recomp] untranslated instruction), 0 → 1 unresolved stub (sub_001232E1, in a region with no callers). The 257 HLE overrides andcheck_hle_pops.pyare unchanged. - Documents: design, work order and work log i049, ARCHITECTURE, README, PROJECT_CHARTER, THIRD_PARTY_NOTICES, the Win32 guide, the analysis
d3dx-matrix.md, a note in design i027.
Verified on a Linux machine (Ubuntu 26.04, GCC 15.2, RTX 4090): Linux x64 Release with 0 warnings, CTest 7/7, and a hidden 100 s run with the 3D demo at 59.8–60.0 fps and no stop or [recomp] report; Linux x86 Release the same with SDL_VIDEO_DRIVER=x11, 3D demo at 59.5–60.0 fps.
Known limits:
- The Win32 x86 build, CTest and run with generated code are not checked (a Windows machine is needed); CI builds without generated code.
- Scenes outside the attract demo (driving and so on) are not checked.
- After moving to this version, run
git submodule updateandregenerate.py.
reCT3 v0.0.25
reCT3 v0.0.25
이전 릴리스 v0.0.24 이후의 변경입니다(issue #25 후속). Linux 실기에서 x86 빌드와 실행까지 확인합니다. 코드는 바뀌지 않았고, 실기에서 만난 환경 문제 두 가지와 우회를 가이드에 적었습니다.
진행한 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #25 | Linux 실기의 x86: 빌드·CTest·실행 확인, libxtst-dev:i386 설치 우회, NVIDIA Wayland에서의 x86 창 우회 |
49f40e0, 501eab5 |
바뀐 것
- 가이드
docs/guides/linux-setup-and-build.md- Ubuntu 26.04에서
libxtst-dev:i386(2:1.2.5-1ubuntu0.1)이 man 페이지 충돌로 설치되지 않으면sudo apt-get -o Dpkg::Options::=--force-overwrite install -y libxtst-dev:i386로 설치한다(i386·amd64 판의 man 페이지만 다르고 헤더는 같다). - x86 빌드를 NVIDIA 드라이버(595.99.02)의 Wayland 세션에서 돌리면 창을 열지 못한다(
unable to create an EGL window surface). 32비트libnvidia-egl-wayland2.so.1의 결함이다.SDL_VIDEO_DRIVER=x11로 우회한다.
- Ubuntu 26.04에서
- 설계·작업 지시·작업 로그 i025의 후속 절, README 플랫폼 표.
확인한 것 (Ubuntu 26.04, GCC 15.2, RTX 4090)
| 구성 | 확인 |
|---|---|
regenerate.py |
4,931/4,932 함수, 실패 0 |
| Linux x64 Release | 경고 0, CTest 7/7. 숨김 100초: 3D 데모 59.5~59.9 fps, 멈춤 없음 |
| Linux x86 Release | 경고 0, CTest 7/7. 숨김 100초(SDL_VIDEO_DRIVER=x11): 3D 데모 58.5~59.9 fps, 멈춤 없음 |
알려진 한계
- 실기의 창·오디오·게임패드는 아직 사용자가 확인하지 않았다.
- Wayland 실패 시 x11로 다시 여는 자동 폴백은 넣지 않았다(설계 i025 §6).
reCT3 v0.0.25 (English)
Changes since v0.0.24 (issue #25 follow-up). The x86 build and run are checked on a Linux machine. No code changed; the guide records two problems of the machine's environment and their workarounds.
Issue: #25, x86 on the Linux machine: build, CTest and run checked, a workaround for installing libxtst-dev:i386 and one for the x86 window under NVIDIA on Wayland (49f40e0, 501eab5).
Changes:
- The guide
docs/guides/linux-setup-and-build.md:- When
libxtst-dev:i386(2:1.2.5-1ubuntu0.1) does not install on Ubuntu 26.04 because of a man page conflict, install it withsudo apt-get -o Dpkg::Options::=--force-overwrite install -y libxtst-dev:i386(only the man pages of the i386 and amd64 packages differ; the headers are identical). - The x86 build cannot open a window in a Wayland session with the NVIDIA driver (595.99.02) (
unable to create an EGL window surface), a defect of the 32-bitlibnvidia-egl-wayland2.so.1;SDL_VIDEO_DRIVER=x11works around it.
- When
- Follow-up sections in design, work order and work log i025; README's platform table.
Verified (Ubuntu 26.04, GCC 15.2, RTX 4090): regenerate.py lifts 4,931 of 4,932 functions with 0 failures; Linux x64 Release has 0 warnings, CTest 7/7, and a hidden 100 s run shows the 3D demo at 59.5–59.9 fps with no stop; Linux x86 Release has 0 warnings, CTest 7/7, and a hidden 100 s run (SDL_VIDEO_DRIVER=x11) shows the 3D demo at 58.5–59.9 fps with no stop.
Known limits:
- The window, audio and gamepad on the machine are not yet checked by the user.
- No automatic fallback that reopens with x11 after a Wayland failure (design i025 section 6).
reCT3 v0.0.24
reCT3 v0.0.24
이전 릴리스 v0.0.23 이후의 변경입니다(issue #41, 2차). 새 텍스처를 만들 때의 멈춤이 사라집니다. rexbox를 v0.0.30으로 올려, 경주 시작 같은 구역 진입에서 작은 텍스처 하나에 3~14 ms를 쓰던 일이 없어졌습니다.
진행한 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #41 | 프레임 페이싱 2차: 느린 프레임의 원인 진단, 텍스처 저장소를 미리 정함. issue는 열어 둔다 | 이 PR |
바뀐 것
- rexbox v0.0.28 → v0.0.30(
682cdaf).- v0.0.29(rexbox #80, #81):
REXBOX_D3D8_SLOW_FRAME의 느린 프레임 보고에 대기·잠금·파일 읽기, 텍스처 업로드·새 프로그램 상세가 붙는다. - v0.0.30(rexbox #83): 느린 프레임의 단계별 시간·양·
oncpu. 2D 텍스처 저장소를glTexStorage2D로 한 번에 정한다.
- v0.0.29(rexbox #80, #81):
- 문서: 작업 로그 i041(2차), ARCHITECTURE의 서브모듈 항목.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release | CTest 7/7 |
| West Coast 주행 | 주행 중 느린 프레임(20 ms 넘음) 189 → 80·54, 느린 프레임의 텍스처 GL 시간 190.7 ms → 0.1 ms. GL 오류 없음, 캡처 정상 |
알려진 한계
- present 막힘(주행 중 0.2~0.6초가 가끔), 밀집 프레임의 나머지 CPU가 남았다(#41).
- 이 버전으로 올린 뒤
git submodule update를 실행해야 한다. - Windows Defender가 빌드한
rect3.exe를Trojan:Win32/Bearfoos.B!ml(머신러닝 판정)로 오탐할 수 있다. 빌드 폴더를 제외에 두면 된다.
reCT3 v0.0.24 (English)
Changes since v0.0.23 (issue #41, part 2). Making new textures no longer stalls. rexbox moves to v0.0.30, so area entries such as the race start no longer spend 3–14 ms on one small texture.
Issue: #41, frame pacing part 2, diagnosing what slow frames spend their time on and giving textures their storage up front; the issue stays open (this PR).
Changes:
- rexbox v0.0.28 → v0.0.30 (
682cdaf).- v0.0.29 (rexbox #80, #81):
REXBOX_D3D8_SLOW_FRAME's slow-frame report gains waits, locks and file reads, and texture-upload and new-program detail. - v0.0.30 (rexbox #83): per-phase time, volume and
oncpufor slow frames; 2D textures get their storage at once withglTexStorage2D.
- v0.0.29 (rexbox #80, #81):
- Documents: work log i041 (part 2), ARCHITECTURE's submodule entry.
Verified: Win32 x86 Release, CTest 7/7. West Coast drives: driving slow frames (over 20 ms) 189 → 80 and 54, texture GL time in slow frames 190.7 ms → 0.1 ms; no GL errors, captures correct.
Known limits:
- Present stalls (occasional 0.2–0.6 s while driving) and the rest of the dense frames' CPU remain (#41).
- After moving to this version, run
git submodule update. - Windows Defender may flag the built
rect3.exeasTrojan:Win32/Bearfoos.B!ml(a machine-learning verdict); excluding the build folder avoids it.
reCT3 v0.0.23
reCT3 v0.0.23
이전 릴리스 v0.0.22 이후의 변경입니다(issue #41, 1차). 밀집 주행 장면의 프레임률이 오릅니다. rexbox를 v0.0.28로 올려, 모든 draw가 정점 배열(VAO) 하나를 씁니다.
진행한 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #41 | 프레임 페이싱 1차: 밀집 장면의 GL 드라이버 비용(VAO 바인드). issue는 열어 둔다 | 2e67615, cba134a |
바뀐 것
- rexbox v0.0.23 → v0.0.28(
f552fac).- v0.0.24~v0.0.26: 다른 타이틀을 위한 변경(텍스처 재활용, 타이틀의 픽셀 셰이더, DSOUND 진단)이다.
- v0.0.27(rexbox #76):
REXBOX_GL_CALLS=time으로 프레임당 GL 드라이버 시간을 진입점별로 잰다. - v0.0.28(rexbox #78): 캐시된 정점 구간마다 두던 VAO를 걷어냈다. 밀집 장면에서 드라이버가 VAO마다 검증하는 비용이 프레임당 수 ms였다.
- 문서: 작업 로그 i041(1차), ARCHITECTURE의 서브모듈 항목.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release | 경고 0, CTest 7/7 |
| West Coast 주행, 밀집 구간 | 54 |
알려진 한계
- 프레임 간격은 아직 고르지 않다(#41의 나머지: 수직 귀선 대기의 정밀도, 가상 시계와 모니터의 어긋남, 밀집 장면의 나머지 cpu).
- 이 버전으로 올린 뒤
git submodule update를 실행해야 한다. - Windows Defender가 빌드한
rect3.exe를Trojan:Win32/Bearfoos.B!ml(머신러닝 판정)로 오탐할 수 있다. 빌드 폴더를 제외에 두면 된다.
reCT3 v0.0.23 (English)
Changes since v0.0.22 (issue #41, part 1). Dense driving scenes run at a higher frame rate. rexbox moves to v0.0.28, so every draw uses one vertex array (VAO).
Issue: #41, frame pacing part 1, the GL driver cost of dense scenes (the VAO binds); the issue stays open (2e67615, cba134a).
Changes:
- rexbox v0.0.23 → v0.0.28 (
f552fac).- v0.0.24–v0.0.26: changes for other titles (recycled textures, the title's pixel shaders, DSOUND diagnostics).
- v0.0.27 (rexbox #76):
REXBOX_GL_CALLS=timemeasures the GL driver time per frame by entry point. - v0.0.28 (rexbox #78): the VAO per cached vertex range is removed; in dense scenes the driver's per-VAO validation cost several ms per frame.
- Documents: work log i041 (part 1), ARCHITECTURE's submodule entry.
Verified: Win32 x86 Release with 0 warnings and CTest 7/7. In the dense stretches of a West Coast drive: 54–57 fps (12.7–14.3 ms CPU, 4.1–4.6 ms GL) before, 59.2–59.3 fps (8.3–8.9 ms CPU, 0.9 ms GL) after.
Known limits:
- Frame intervals are not steady yet (the rest of #41: the vertical-blank wait's precision, the virtual clock drifting from the monitor, the rest of the dense scenes' CPU).
- After moving to this version, run
git submodule update. - Windows Defender may flag the built
rect3.exeasTrojan:Win32/Bearfoos.B!ml(a machine-learning verdict); excluding the build folder avoids it.
reCT3 v0.0.22
reCT3 v0.0.22
이전 릴리스 v0.0.21 이후의 변경입니다(issue #44, #41). 부팅 초기에 가끔 나던 null 간접 호출(000B27B0)을 고치고, rexbox를 v0.0.23으로 올립니다.
해결된 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #44 | 부팅 초기의 null 간접 호출: ADXF Close가 파일 서버의 두 읽기 사이에 객체를 지움 | be3bc75, 2b9eb80, 4195b8e, 6e9be40 |
바뀐 것
src/game/ct3/decomp/adxm_lock.c: ADXF Close(000B2A90)를 ADXM 호스트 잠금 아래에서 돌게 했다.- Close는 읽는 중(상태 2)일 때만 잠금을 잡는 정지 경로를 거치고, 객체 0x138바이트를 잠금 없이 0으로 지운다.
- 부팅 때 AFS 파티션 표를 읽는 코드가, 읽기가 끝나자마자(상태 3) Close를 불렀다. 파일 서버가 막 상태를 바꾸고 스트림 필드를 두 번 읽는 사이에 Close가 끼어들었다.
- Xbox에서는 서버 실행이 게임 스레드보다 높은 우선순위라 끼어들 수 없었다(설계).
- rexbox v0.0.21 → v0.0.23(
25587f7, #41의 준비): XDK 5849 LTCG 지원, 로딩 스레드에서 그리는 타이틀의 창 스레드 수정,RtlLeaveCriticalSection이 첫 대기자에게 구간을 넘김. 이 마지막 변경으로 스레드 순서가 바뀌어 #44가 더 자주 드러났다. - 분석
docs/analysis/cri-middleware.md§5에 ADXF 객체 표와 Close 경로를 더했다.decomp/README.md, ARCHITECTURE를 갱신했다. - 문서: 설계·작업 지시·작업 로그 i044.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release | 경고 0, CTest 7/7 |
| 숨긴 데모 6개 동시 실행 | 수정 전(v0.0.23) 42번 중 null 호출 6번 → 수정 후 48번 중 0번. 음악 멈춤·다른 스트림 멈춤·stall·잠금 시한도 0 |
| 운전 진입 | West Coast 운전 구간 59.5~59.8 fps, 이상 없음 |
알려진 한계
- 영상 구간의 null 간접 호출(
000C967E)은 별개의 CRI 경합으로 보이며 남아 있다(드묾). - 이 버전으로 올린 뒤
git submodule update와scripts/recomp/regenerate.py를 다시 실행해야 한다(새 대체 함수000B2A90). - Windows Defender가 빌드한
rect3.exe를Trojan:Win32/Bearfoos.B!ml(머신러닝 판정)로 오탐할 수 있다. 빌드 폴더를 제외에 두면 된다.
reCT3 v0.0.22 (English)
Changes since v0.0.21 (issues #44, #41). Fixes a null indirect call (000B27B0) that sometimes happened early in boot, and moves rexbox to v0.0.23.
Issue: #44, the null indirect call early in boot, ADXF Close zeroing an object between the file server's two reads (be3bc75, 2b9eb80, 4195b8e, 6e9be40).
Changes:
src/game/ct3/decomp/adxm_lock.cruns ADXF Close (000B2A90) under the ADXM host lock.- Close goes through the locked stop path only while the object is reading (state 2), and zeroes its 0x138 bytes with no lock.
- The code that reads the AFS partition table at boot called Close as soon as the read was done (state 3). It landed while the file server, having just changed the state, read the stream field twice.
- On the Xbox the server pass ran above the game thread and could not be interrupted (design).
- rexbox v0.0.21 → v0.0.23 (
25587f7, groundwork for #41): XDK 5849 LTCG support, window-thread fixes for titles that draw from a loading thread, andRtlLeaveCriticalSectionhanding the section to the first waiter. That last change alters the thread order and made #44 show more often. - The analysis
docs/analysis/cri-middleware.mdsection 5 adds the ADXF object table and the Close path;decomp/README.mdand ARCHITECTURE are updated. Design, work order and work log i044.
Verified: Win32 x86 Release with 0 warnings and CTest 7/7. Batches of six hidden demos in parallel: 6 null calls in 42 runs before the fix (v0.0.23), 0 in 48 after, with no music stop, other stream stop, stall or lock timeout. A drive into gameplay: 59.5–59.8 fps in the West Coast driving section, no issues.
Known limits:
- The null indirect call in the movie (
000C967E) looks like a separate CRI race and remains (rare). - After moving to this version, run
git submodule updateandscripts/recomp/regenerate.pyagain (new replacement000B2A90). - Windows Defender may flag the built
rect3.exeasTrojan:Win32/Bearfoos.B!ml(a machine-learning verdict); excluding the build folder avoids it.
reCT3 v0.0.21
reCT3 v0.0.21
이전 릴리스 v0.0.20 이후의 변경입니다(issue #42). 로딩 화면에서 게임이 가끔 멈추던 문제를 고칩니다. v0.0.18(#29의 SJ 잠금) 이후 약 10%의 로딩에서 음악이 끊기고 화면이 멈췄습니다.
해결된 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #42 | 로딩 화면 멈춤: CRI vsync 스레드가 오류 트랩에서 SJ 잠금을 쥔 채 멈춤 | 72b11d3, 552bb72, 34a0c68 |
바뀐 것
src/game/ct3/decomp/adxm_lock.c: 레벨 2 서버 실행(000B9540, ADX 디코드·출력과 AIX 분리)과 SJRBF 리셋(000B7EE0)을 ADXM 호스트 잠금 아래에 둔다. ADXT 정지가 SVM 잠금을 놓은 뒤 입력 링을 리셋하는데, 그것이 ADX 디코더가 그 링의 조각을 쥔 사이에 끼어들어 장부가 깨지고 CRI 오류 트랩(jmp $)에 빠졌다. Xbox에서는 서버 실행이 게임 스레드보다 높은 우선순위라 끼어들 수 없었다(설계).- 분석
docs/analysis/cri-middleware.md: SJ 링 레인 수의 짝과 −3을 내는 함수(UngetChunk)를 바로잡고, 서버·정지 경로를 더했다.decomp/README.md, ARCHITECTURE. - 문서: 설계·작업 지시·작업 로그 i042.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release | 경고 0(생성 코드의 기존 D9025 제외), CTest 7/7 |
| 숨긴 데모 6개 동시 실행 | 수정 전 42번 중 트랩·음악 멈춤 4번 → 수정 후 42번(계측 24, 최종 18) 중 0번 |
| 운전 진입(21:9, 렌더 배율 4, MSAA 16x) | 2번 모두 정상 |
알려진 한계
- 영상 구간의 null 간접 호출(
000C967E)은 별개의 CRI 경합으로 보이며 남아 있다(드묾). - 이 버전으로 올린 뒤
scripts/recomp/regenerate.py를 다시 실행해야 한다(새 대체 함수000B9540,000B7EE0). - Windows Defender가 빌드한
rect3.exe를Trojan:Win32/Bearfoos.B!ml(머신러닝 판정)로 오탐할 수 있다. 빌드 폴더를 제외에 두면 된다.
reCT3 v0.0.21 (English)
Changes since v0.0.20 (issue #42). Fixes the game sometimes stopping at a loading screen, where since v0.0.18 (#29's SJ lock) about 10% of loads cut the music and froze the picture.
Issue: #42, the loading-screen hang, CRI's vsync thread stuck in an error trap holding the SJ lock (72b11d3, 552bb72, 34a0c68).
Changes: src/game/ct3/decomp/adxm_lock.c puts the level-2 server pass (000B9540: ADX decode and output, the AIX demultiplexer) and the SJRBF reset (000B7EE0) under the ADXM host lock. ADXT's stop resets the input ring after leaving its SVM lock; landing while the ADX decoder held a chunk of that ring, it broke the ring's books and sent CRI into its error trap (jmp $); on the Xbox the server pass ran above the game thread and could not be interrupted (design). The analysis docs/analysis/cri-middleware.md corrects the SJ ring's lane-count pairing and the function that reports −3 (UngetChunk) and adds the server and stop paths; decomp/README.md, ARCHITECTURE; design, work order and work log i042.
Verified: Win32 x86 Release with 0 warnings (apart from the generated code's existing D9025) and CTest 7/7; batches of six hidden demos in parallel: traps and music stops in 4 of 42 runs before, 0 of 42 after (24 instrumented, 18 final); two drives into gameplay (21:9, render scale 4, MSAA 16x) were fine.
Known limits: the null indirect call in the movie (000C967E) looks like a separate CRI race and remains (rare). After moving to this version run scripts/recomp/regenerate.py again (new replacements 000B9540, 000B7EE0). Windows Defender may flag the built rect3.exe as Trojan:Win32/Bearfoos.B!ml (a machine-learning verdict); excluding the build folder avoids it.
reCT3 v0.0.20
reCT3 v0.0.20
이전 릴리스 v0.0.19 이후의 변경입니다(issue #39). Linux 가이드의 x86(i386) 패키지 설치가 Ubuntu 24.04의 glib 2.80.0-6ubuntu3.10에서도 됩니다. rexbox를 v0.0.21로 올립니다.
해결된 issue
| issue | 내용 | 커밋 |
|---|---|---|
| #39 | Linux 가이드의 i386 설치가 glib 3.10에서 멈춤 | 8d0039b |
바뀐 것
docs/guides/linux-setup-and-build.md: x86 설치 앞에sudo apt-get install -y libglib2.0-dev-bin qemu-user. glib 3.10의 개발 파일은python3 | qemu-user | qemu-user-static에 의존하고, i386 패키지에서 이python3는 i386python3라 설치된 amd64 Python과 충돌한다(held broken packages).- rexbox v0.0.20 → v0.0.21(
bc21519, reexec/rexbox#46): CI와 릴리스 워크플로의 Linux x86 작업에 같은 선행 설치. 코드 변경은 없다. - 문서: 작업 지시·작업 로그 i039, ARCHITECTURE의 submodule 표기.
확인한 것
| 구성 | 확인 |
|---|---|
| WSL2 Ubuntu 24.04 | 가이드 설치 시뮬레이션이 풀림 |
| rexbox CI | Linux x86 Debug·Release 포함 6개 작업 통과, v0.0.21 릴리스 워크플로 통과 |
알려진 한계
- 재생성은 필요 없다.
reCT3 v0.0.20 (English)
Changes since v0.0.19 (issue #39). The Linux guide's x86 (i386) package install works with Ubuntu 24.04's glib 2.80.0-6ubuntu3.10. rexbox moves to v0.0.21.
Issue: #39, the Linux guide's i386 install stopped on glib 3.10 (8d0039b).
Changes: docs/guides/linux-setup-and-build.md runs sudo apt-get install -y libglib2.0-dev-bin qemu-user before the x86 install; glib 3.10's development files depend on python3 | qemu-user | qemu-user-static, which for an i386 package is python3:i386 and clashes with the installed amd64 Python (held broken packages). rexbox v0.0.20 → v0.0.21 (bc21519, reexec/rexbox#46): the same first step in the Linux x86 jobs of CI and the release workflow, no code change. Documents: work order and work log i039, the submodule entry in ARCHITECTURE.
Verified: the guide's install resolves in simulation on WSL2 Ubuntu 24.04; rexbox's CI passes all six jobs, Linux x86 Debug and Release among them, and its v0.0.21 release workflow passes. No regeneration is needed.
reCT3 v0.0.19
reCT3 v0.0.19
이전 릴리스 v0.0.18 이후의 변경입니다(issue #20 2차). 운전이 시작될 때 셰이더 프로그램을 한꺼번에 불러오느라 생기던 끊김이 줄어듭니다. rexbox를 v0.0.20으로 올립니다.
issue
| issue | 내용 | 커밋 |
|---|---|---|
| #20 (2차, 열림) | 운전 화면 프레임 시간: 긴 프레임 찾기, 프로그램 캐시 미리 올리기 | d88a59d, 04c47b3, da5c94b |
바뀐 것
- rexbox v0.0.19 → v0.0.20(
c98fc2a, reexec/rexbox#23 2차): 셰이더 프로그램 캐시를 표시 스레드가 vblank를 기다리는 시간에 미리 올린다(파일은 읽기 스레드가 읽는다).REXBOX_SHADER_WARM=<n>(기본 1024, 0이면 끔). 긴 프레임 진단REXBOX_D3D8_SLOW_FRAME=<ms>는 프레임의 텍스처·프로그램 시간을 보고하고, 측정하는 프레임을 늦추지 않는다. - 문서: 작업 로그 i020(2차), ARCHITECTURE의 submodule 표기.
확인한 것
| 구성 | 확인 |
|---|---|
| Win32 x86 Release(Ryzen 5 5600X, RTX 4090) | 경고 0(생성 코드의 기존 D9025 제외), CTest 7/7 |
| 운전 진입, 미리 올리기 켬/끔 번갈아 3쌍 | 장면 시작의 프로그램 74개 4 |
| 꾸준한 운전 | 59.8 fps(v0.0.12 기준과 같음) |
알려진 한계
- 운전 시작의 텍스처 업로드(112개 15 ms, 가끔 56 ms)와 카메라 도입부의 그리기 수가 많은 프레임은 그대로다(#20 계속).
- 재생성은 필요 없다(v0.0.18에서 재생성했다면). main으로 옮긴 뒤
scripts/recomp/regenerate.py를 하지 않으면 decomp 대체가 빠진 채 링크된다.
reCT3 v0.0.19 (English)
Changes since v0.0.18 (issue #20, second pass). Fewer hitches at the start of driving, where the title loads dozens of shader programs at once. rexbox moves to v0.0.20.
Issue: #20 (second pass, still open): driving frame time, finding the long frames and warming the program cache (d88a59d, 04c47b3, da5c94b).
Changes: rexbox v0.0.19 → v0.0.20 (c98fc2a, reexec/rexbox#23 second pass): the shader program cache is warmed while the presenting thread waits for the vertical blank (a reader thread reads the files), REXBOX_SHADER_WARM=<n> (default 1024, 0 off); the long-frame diagnostic REXBOX_D3D8_SLOW_FRAME=<ms> reports a frame's texture and program times and no longer delays the frames it measures. Documents: work log i020 (second pass), the submodule entry in ARCHITECTURE.
Verified: Win32 x86 Release (Ryzen 5 5600X, RTX 4090) with 0 warnings (apart from the generated code's existing D9025) and CTest 7/7; three alternating warming on/off pairs into driving: 74 programs at the scene start in 4–5 ms against 40–42 ms, worst frame 50–51 ms against 58–61 ms, the same boot fps; steady driving at 59.8 fps, as the v0.0.12 baseline.
Known limits: the texture uploads at the start of driving (112 in 15 ms, sometimes 56 ms) and the camera intro's many-draw frames are unchanged (#20 continues). No regeneration is needed if v0.0.18 was regenerated; after moving to a new main, skipping scripts/recomp/regenerate.py links without the decomp replacements.