Skip to content

rexbox v0.0.21

Choose a tag to compare

@github-actions github-actions released this 03 Nov 01:47
· 12 commits to main since this release
bc21519

rexbox v0.0.21

이전 릴리스 v0.0.20 이후의 변경입니다(issue #46). CI와 릴리스 워크플로의 Linux x86 작업이 다시 패키지를 설치합니다. 2026-11-02부터 glib 2.80.0-6ubuntu3.10 때문에 설치가 멈춰, main의 CI가 실패하고 v0.0.17~v0.0.20의 GitHub Release가 만들어지지 않았습니다.

issue

issue 내용 커밋
#46 Linux x86 작업의 libglib2.0-dev:i386 설치 실패 i046-ci-glib-i386 브랜치

바뀐 것

  • ci.yml, release.yml: x86 작업이 i386 개발 패키지 전에 amd64 libglib2.0-dev-bin과 qemu-user를 설치한다. glib 3.10의 개발 파일은 python3 | qemu-user | qemu-user-static에 의존하는데, i386 패키지에서 이 python3는 i386 python3다. 목록을 한 번에 주면 apt가 그것을 골라 러너의 amd64 Python과 충돌하고 포기했다(작업 로그).
  • docs/guides/linux-setup-and-build.md: i386 설치에 같은 선행 설치.

소비자가 할 일

  • 코드 변경은 없다. submodule을 올려도 되고 그대로 두어도 된다.
  • 자기 CI나 Linux 기계에서 libpulse-dev:i386을 설치한다면 같은 선행 설치를 한다.

확인한 것

구성 확인
브랜치의 ci.yml 6개 작업 모두 통과

rexbox v0.0.21 (English)

Changes since v0.0.20 (issue #46). The Linux x86 jobs of CI and the release workflow install their packages again. Since 2026-11-02 glib 2.80.0-6ubuntu3.10 stopped the install, so CI on main failed and no GitHub Release was made for v0.0.17–v0.0.20.

Issue: #46, the Linux x86 jobs' libglib2.0-dev:i386 install failure (branch i046-ci-glib-i386).

Changes: ci.yml and release.yml install the amd64 libglib2.0-dev-bin and qemu-user before the i386 development packages in the x86 jobs. glib 3.10's development files depend on python3 | qemu-user | qemu-user-static, and for an i386 package that python3 is python3:i386; given the whole list at once apt took it, clashed with the runner's amd64 Python and gave up (work log). docs/guides/linux-setup-and-build.md adds the same step to the i386 install.

Consumers: no code changes; moving the submodule is optional. A consumer CI or Linux machine installing libpulse-dev:i386 needs the same first step.

Verified: the branch's ci.yml passes all six jobs.


이 릴리스에 함께 담는 이전 버전 / Earlier versions included in this release

v0.0.17~v0.0.20은 태그만 있고 GitHub Release가 없습니다. 그때 릴리스 워크플로의 Linux x86 작업이 실패했기 때문입니다(issue #46). 각 버전의 릴리스 노트를 아래에 그대로 싣습니다.

v0.0.17–v0.0.20 have tags but no GitHub Release, because the release workflow's Linux x86 jobs failed then (issue #46). Their release notes follow as they were.


rexbox v0.0.20

이전 릴리스 v0.0.19 이후의 변경입니다(issue #23 2차). 셰이더 프로그램 캐시를 표시 스레드가 vblank를 기다리는 시간에 미리 올립니다. 장면이 시작될 때 캐시에서 프로그램을 수십 개 불러오느라 생기던 끊김이 줄어듭니다(소비자 reCT3 운전 시작: 프로그램 74개 4042 ms → 45 ms). 긴 프레임 진단이 측정하는 프레임을 더 이상 늦추지 않습니다.

issue

issue 내용 커밋
#23 (2차, 열림) 긴 프레임 진단, 프로그램 캐시 미리 올리기 3fbf90c, b496593, 515fa4b, f844f01, c17f839

바뀐 것

  • 프로그램 미리 올리기(d3d8_gl_program_cache.*, d3d8_vblank.*, d3d8_device.cpp): 표시 스레드가 present나 BlockUntilVerticalBlank에서 잠들기 직전, 마감(다음 blank − 2 ms)까지 캐시의 프로그램을 최근에 쓴 순서로 만들어 둔다. 장면이 요청하면 바로 꺼낸다. 파일 읽기와 쓰인 항목의 파일 시각 갱신은 읽기 스레드가 한다. REXBOX_SHADER_WARM=<n>은 최대 n개(기본 1024, 0이면 끔)다(설계).
  • REXBOX_D3D8_SLOW_FRAME=<ms>(진단): 그 ms를 넘는 프레임의 단계, 텍스처 업로드 수·크기·시간, 프로그램 수·시간을 보고한다. 보고는 모아 600프레임마다 쓴다. 한 줄씩 바로 쓰면 그 쓰기(리디렉션된 파일로 7~35 ms)가 다음 프레임을 늘려 60 fps 타이틀이 30 fps에 갇혔다.
  • 프로파일의 프로그램 줄에 미리 올린 수와 시간을 더한다.
  • 문서: 설계 i023 미리 올리기, 작업 지시·작업 로그 i023(2차).

소비자가 할 일

  • submodule을 올린다. 공개 계약은 바뀌지 않았고 재생성도 필요 없다.
  • 프로그램 캐시 디렉터리(기본 cache/shaders)의 파일 수정 시각이 "최근 사용"으로 쓰인다. 캐시를 복사하거나 지울 때 참고한다.

확인한 것

구성 확인
소비자 reCT3 Win32 x86 Release(Ryzen 5 5600X, RTX 4090) 경고 0(생성 코드의 기존 D9025 제외), CTest 7/7
운전 진입, 켬/끔 번갈아 3쌍 장면 시작 프로그램 74개 45 ms 대 4042 ms, 최악 프레임 5051 ms 대 5861 ms, 부팅 구간 fps 같음, 멈춤 없음
진단 보고 있음/없음 모두 운전 59.8 fps

알려진 한계

  • 캐시에 없는 프로그램(처음 실행, 소스 변경)은 지금처럼 장면에서 컴파일된다.
  • 운전 시작 프레임의 텍스처 업로드(112개 15 ms, 가끔 56 ms)는 그대로다.
  • 디스크 캐시가 빈 첫 실행은 읽기 스레드 구조로 다시 재현하지 못했다.

rexbox v0.0.20 (English)

Changes since v0.0.19 (issue #23, second pass). The shader program cache is warmed while the presenting thread waits for the vertical blank, cutting the hitches of scenes that load dozens of cached programs at once (in the consumer reCT3 at the start of driving, 74 programs went from 40–42 ms to 4–5 ms). The long-frame diagnostic no longer delays the frames it measures.

Issue: #23 (second pass, still open): the long-frame diagnostic and program-cache warming (3fbf90c, b496593, 515fa4b, f844f01, c17f839).

Changes:

  • Program warming (d3d8_gl_program_cache.*, d3d8_vblank.*, d3d8_device.cpp): right before the presenting thread sleeps in a present or BlockUntilVerticalBlank, it makes cached programs, most recently used first, until a deadline (the next blank less 2 ms); a scene's request takes them at once. A reader thread reads the files and updates the file times of used entries. REXBOX_SHADER_WARM=<n> warms at most n (default 1024, 0 off) (design).
  • REXBOX_D3D8_SLOW_FRAME=<ms> (diagnostic): a frame over that many ms reports its phases, its texture uploads (count, size, time) and its programs (count, time). Reports are held and written every 600 frames; written one line at a time, the write (7–35 ms to a redirected file) lengthened the next frame and held a 60 fps title at 30 fps.
  • The profile's program line adds the programs warmed and their time.
  • Documents: the i023 warming design, the i023 work order and work log (second pass).

Consumers: move the submodule. The public contract is unchanged and no regeneration is needed. File modification times in the program cache directory (default cache/shaders) now mean "recently used"; keep that in mind when copying or clearing the cache.

Verified: consumer reCT3 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 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, no stops; driving at 59.8 fps with and without the diagnostic.

Known limits: programs missing from the cache (a first run, changed sources) are still compiled in the scene; the texture uploads of the driving-start frame (112 in 15 ms, sometimes 56 ms) are unchanged; a first run with a cold disk cache was not reproduced again with the reader thread.


rexbox v0.0.19

이전 릴리스 v0.0.18 이후의 변경입니다(issue #42, #43). render state로 쓴 combiner 상수를 픽셀 셰이더 상수로 쓰고, 다시 채워지지 않는 스트림 루프 버퍼를 기본 로그에 보고합니다.

issue

issue 내용 커밋
#42 render state로 쓴 combiner 상수(COMBINER_FACTOR0/1, 최종 상수) 4f3e5b8
#43 스트림 루프 버퍼 정지 보고, 게스트 스레드 상태와 호스트 콜스택 87e7017, 이 릴리스의 마지막 커밋

바뀐 것

  • D3D8: SetPixelShader 뒤에 render state로 쓴 COMBINER_FACTOR0/1(단계별)과 최종 combiner 상수가 그 단계의 c0/c1이 된다. 정의의 상수와 SetPixelShaderConstant보다 우선한다(설계 i042). d3d8 probe 220 → 223.
  • DSOUND: 16 KiB 이상의 루프 버퍼가 스트림으로 쓰이다가 같은 내용을 8바퀴, 2초 넘게 반복하면 [dsound] buffer ... its writer stopped를 한 번 보고한다. 이어서 게스트 스레드 상태와 호스트 콜스택을 출력한다(설계 i043).
  • runtime·플랫폼: ReportGuestThreads, 플랫폼 계약 stack_report.h(Linux 구현, Win32는 아직 없음). 정지 보고(present 정지)도 호스트 콜스택을 출력한다.
  • 문서: ARCHITECTURE, 설계·작업 지시·작업 로그 i042, i043.

소비자가 할 일

  • submodule을 올린다. 공개 계약은 늘기만 했고 재생성은 필요 없다.
  • render state로 combiner 상수를 쓰는 타이틀은 그 그리기의 색과 알파가 바뀐다(원본과 같아지는 방향). 화면을 확인한다.
  • Linux에서 게스트 스레드는 SIGUSR2를 진단 보고에 쓴다. 타이틀이 SIGUSR2를 쓰지 않아야 한다.

확인한 것

구성 확인
d3d8 probe 223/223
소비자 reCT3 Linux x64 Release 경고 0, CTest 7/7
소비자 reCT3 데모 바퀴 불꽃이 그려짐(사용자 확인). 스트림 정지 보고 한 번, 정적 루프·무음에 오탐 없음

rexbox v0.0.19 (English)

Changes since v0.0.18 (issues #42, #43). Combiner constants written as render states become the pixel shader constants, and a streamed loop buffer no longer refilled is reported in the default log.

Issues: #42, combiner constants written as render states (COMBINER_FACTOR0/1, final constants) (4f3e5b8); #43, the stalled-stream report with guest thread states and host stacks (87e7017 and the last commit of this release).

Changes: D3D8: per-stage COMBINER_FACTOR0/1 and the final combiner constants written as render states after SetPixelShader become that stage's c0/c1, over the definition and SetPixelShaderConstant (design i042); d3d8 probe 220 → 223. DSOUND: a loop buffer of 16 KiB or more used as a stream that then replays the same content for 8 laps and over 2 s is reported once ([dsound] buffer ... its writer stopped), followed by the guest thread states and host stacks (design i043). Runtime and platform: ReportGuestThreads and the platform contract stack_report.h (Linux; Win32 not yet); the present-stall report prints host stacks too. Documents: ARCHITECTURE, design, work order and work log i042 and i043.

Consumers: move the submodule; the public contract only grew and no regeneration is needed. A title writing combiner constants as render states sees those draws' color and alpha change (toward the original); check the picture. On Linux the guest threads use SIGUSR2 for diagnostic reports; the title must not use SIGUSR2.

Verified: d3d8 probe 223/223; the consumer reCT3 Linux x64 Release with 0 warnings and CTest 7/7; in reCT3's demo the wheel flames are drawn (user confirmed) and the stalled-stream report fires once, with no false positive for static loops or silence.


rexbox v0.0.18

이전 릴리스 v0.0.17 이후의 변경입니다(issue #40). DSOUND가 음성 headroom과 3D 음성(거리·cone 감쇠, 좌우 패닝, 도플러)을 소리에 반영하고, 믹스 빈을 스테레오로 접을 때 전력으로 더합니다.

issue

issue 내용 커밋
#40 음성 headroom, 3D 음성, 스테레오 접기 02fbad2, 19c5fea, 이 릴리스의 마지막 커밋

바뀐 것

  • headroom: 음성 음량은 volume − headroom이다. 만들 때 기본값은 2D 600(−6 dB), 3D·MIXIN·FXIN 0이다(XDK 4531에서 확인).
  • 3D 음성(src/hle/dsound/dsound_3d.cpp): 버퍼·리스너 3D 설정을 저장해 바로 적용한다. 거리 감쇠는 XDK 식이고, cone과 도플러는 DirectSound 정의, 좌우 패닝은 HRTF 대신 균형 법칙이다. HRTF, I3DL2 리버브, rolloff 곡선, SetAllParameters는 여전히 받기만 한다.
  • 스테레오 접기: 믹스 빈을 진폭이 아니라 전력으로 더한다. 가운데는 양쪽에 −3 dB, LFE는 뺀다.
  • dsound probe 55 → 73개. 문서: ARCHITECTURE, docs/kb/xbox-dsound.md, 설계·작업 지시·작업 로그 i040.

소비자가 할 일

  • submodule을 올린다. 공개 계약은 바뀌지 않았고 재생성도 필요 없다.
  • 소리의 크기 균형이 바뀐다. 2D 효과음은 headroom 기본값 때문에 6 dB 작아진다. 여러 스피커 빈에 보내는 소리는 전력 접기로 작아지고, LFE 빈만 쓰는 소리는 들리지 않는다. 3D 음성은 거리에 따라 작아지고 좌우로 갈린다. 게임에서 들어 보고 확인한다.

확인한 것

구성 확인
dsound probe 73/73
소비자 reCT3 Linux x64 Release 경고 0, CTest 7/7, 숨김 데모 120초 멈춤 없음
소비자 reCT3 청취(Linux) 효과음이 음악보다 튀는 정도가 줄었지만 아직 어색함(남은 작업)

rexbox v0.0.18 (English)

Changes since v0.0.17 (issue #40). DSOUND renders the voice headroom and 3D voices (distance and cone attenuation, a stereo pan, Doppler), and folds the mix bins to stereo by power.

Issue: #40, voice headroom, 3D voices and the stereo fold-down (02fbad2, 19c5fea and the last commit of this release).

Changes: a voice plays at volume − headroom, with the creation defaults 600 (−6 dB) for 2D and 0 for 3D, MIXIN and FXIN (confirmed in XDK 4531). src/hle/dsound/dsound_3d.cpp stores the buffer and listener 3D settings and applies them at once: the XDK distance attenuation, DirectSound's cone and Doppler, and a balance-law pan in place of the HRTF; HRTF, I3DL2 reverb, rolloff curves and SetAllParameters stay accepted only. The mix bins fold to stereo by power rather than amplitude, the center at −3 dB per side and the LFE left out. The dsound probe goes from 55 to 73 checks. Documents: ARCHITECTURE, docs/kb/xbox-dsound.md, design, work order and work log i040.

Consumers: move the submodule; the public contract is unchanged and no regeneration is needed. The loudness balance changes: 2D effects drop 6 dB through the default headroom, a sound sent to several speaker bins drops through the power fold, a sound on the LFE bin alone goes silent, and 3D voices fade with distance and split left and right; listen in the game.

Verified: dsound probe 73/73; the consumer reCT3 Linux x64 Release with 0 warnings, CTest 7/7 and a 120 s hidden demo without a stop; listening to reCT3 on Linux: the effects stand out less than before but still sound off (left open).


rexbox v0.0.17

이전 릴리스 v0.0.16 이후의 변경입니다(issue #38). Hor+ 와이드스크린에서 넓힌 깊이 스텐실과 함께 묶인 4:3 색 타깃도 넓힙니다. 텍스처 렌더 타깃이 깊이를 4:3 x 자리에 써서, 이후 장면 그리기에 구멍이 났습니다(소비자 reCT3: 밤 운전 중 헤드라이트 왼쪽 240픽셀에 검은 점 두 개).

issue

issue 내용 커밋
#38 넓힌 깊이 스텐실과 묶인 4:3 색 타깃의 깊이 위치 7e01c49, 8e6aa3d

바뀐 것

  • src/hle/d3d8/d3d8_gl_targets.cpp: 넓힌 깊이 스텐실과 같은 게스트 크기로 묶인 색 타깃을 기록해 백버퍼처럼 넓힌다. 크기가 다르면 한 번 보고한다. 넓힌 타깃(백버퍼 포함)의 샘플링 복사는 가운데 4:3만 가져간다(설계 i038).
  • src/hle/d3d8/d3d8_capture.cpp: 캡처의 그리기 줄에 zs <깊이 표면 헤더>.
  • 문서: ARCHITECTURE.md, 설계·작업 지시·작업 로그 i038.

소비자가 할 일

  • submodule을 올린다. 공개 계약은 바뀌지 않았고 재생성도 필요 없다. 4:3은 바뀌지 않는다.
  • 와이드에서 백버퍼를 텍스처로 읽는 효과가 있다면, 이제 넓은 그림 전체가 아니라 가운데 4:3 그림을 읽는다. 와이드 화면에서 그런 효과를 확인한다.

확인한 것

구성 확인
소비자 reCT3 Win32 x86 Release 경고 0, ctest 7/7
소비자 reCT3 21:9 밤 운전의 검은 점 사라짐(사용자 확인), 어트랙트 데모 150 s

rexbox v0.0.17 (English)

Changes since v0.0.16 (issue #38). Under Hor+ widescreen a 4:3 color target bound with the widened depth stencil is widened too. A texture render target wrote its depth at the 4:3 x, leaving holes in later scene draws (in the consumer reCT3, two black dots 240 pixels left of the headlights while driving at night).

Issue: #38, the depth position of a 4:3 color target bound with the widened depth stencil (7e01c49, 8e6aa3d).

Changes: src/hle/d3d8/d3d8_gl_targets.cpp records a color target bound at the widened depth stencil's guest size and widens it like a back buffer, reporting a different size once; the sampling copy of a widened target (back buffers included) takes only the 4:3 middle (design i038). src/hle/d3d8/d3d8_capture.cpp: capture draw lines gain zs <depth surface header>. Documents: ARCHITECTURE.md, design, work order and work log i038.

Consumers: move the submodule. The public contract is unchanged and no regeneration is needed; 4:3 is unchanged. An effect that reads the back buffer as a texture at widescreen now reads the 4:3 middle rather than the whole wide picture; check such effects at widescreen.

Verified: in the consumer reCT3, Win32 x86 Release with 0 warnings and ctest 7/7; at 21:9 the night-driving dots are gone (user confirmed) and the attract demo ran 150 s.