- Rust 99.5%
- PowerShell 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| .githooks | ||
| .github/workflows | ||
| apps/blackbebe | ||
| crates | ||
| docs | ||
| scripts | ||
| tests/fixtures/hle-probe | ||
| xtask | ||
| .blackbebe-root | ||
| .gitattributes | ||
| .gitignore | ||
| blackbebe.example.toml | ||
| Build-Shaders.cmd | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Get-NVIDIA-DLSS.cmd | ||
| LICENSE | ||
| Play-Blackbebe.cmd | ||
| PLAY_FRAMEGEN.cmd | ||
| README.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
Blackbebe (BBC)
Blackbebe is a compatibility layer and recompilation of one console title for
Windows: it runs the title's original code natively on a PC from files you
supply, and translates its graphics, audio, input and storage calls to
Direct3D 12 and Windows. blackbebec (BBC) is this repository;
blackbebelauncher (BBL) is the launcher, which builds as blackbebe.exe.
This repository contains no game files.
State
It is not finished. On the PC it is developed on (GeForce RTX 4070 12 GB, 32 GB of RAM, 2560x1440) the title starts, loads a save and plays with ray tracing on, at about 6 to 14 frames a second in the open world (scene at 1080p, upscaled to 1440p). Known faults: low frame rate, texture pop-in, ghosting, and picture errors while driving.
Newest (4 December 2026): the ray-tracing structures are now built natively on
the PC (the title's own builder is no longer run), which made the card's part
of a frame many times shorter. A device loss about two minutes into play is
fixed: shrinking the structures in the background (compaction) is now off by
default (BLACKBEBE_RT_COMPACT=1 turns it back on). The card still uses
somewhat more memory than its budget, and the main processor spends 20 to 50 ms
a frame preparing work: those are the next things to fix.
What you need
- Windows 10 or 11 (x64), a CPU with AVX2, 32 GB of RAM or more, an SSD.
- An NVIDIA GeForce RTX card with a recent driver (RTX 40 or later for frame generation, with hardware-accelerated GPU scheduling on).
- Rust (the toolchain is pinned) and the Visual Studio Build Tools with "Desktop development with C++".
- Your own dump of the title (the folder with its executable).
Build and run
copy blackbebe.example.toml blackbebe.toml # then set game_dir to your dump's folder, outside this one
.\Get-NVIDIA-DLSS.cmd # once, optional: NVIDIA's DLSS and frame generation files, about 70 MB
scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\<the title's executable>'
The first start builds the layer, which takes a few minutes.
Get-NVIDIA-DLSS.cmd gets NVIDIA's files from
NVIDIA-RTX/Streamline into
nvidia-sdk\ (git-ignored). They are NVIDIA's, under NVIDIA's licences, which
are saved beside them; this repository does not carry them. Nothing is
downloaded unless you run that file.
A built blackbebe.exe can also be put next to the title's executable and
started with a double click. Nothing is written into the game folder:
settings, saves, caches and logs are kept under %LOCALAPPDATA%\blackbebe.
| Option | What |
|---|---|
| (none) | 2560x1440, DLSS Quality, no frame rate cap, frame generation ready but off |
-FrameGen, -FrameGenX 4 |
frame generation on from the start, 2 to 6 frames shown for each one rendered |
-Dlss off / dlaa / balanced / performance |
the title's own upscaling, or another DLSS mode |
-Fps 60 |
a frame rate cap (30 is the title's own) |
-Res 1080to1440 / 4k |
scene at 1080p upscaled by the title / 3840x2160 output |
-Build diag |
the diagnostics build (slower; captures, timelines) |
-More @{BLACKBEBE_X='1'} |
add or override any switch |
In the game, F1 brings up the settings menu and F3 the stats panel.
Build-Shaders.cmd makes every shader and pipeline of the title ahead of play.
How it works
- docs/architecture.md: the crates and what each does.
- docs/findings.md: what was measured along the way.
- docs/fork-ray-tracing.md: ray tracing.
- docs/dlss.md: DLSS and frame generation.
- docs/replay.md: recording a frame and running it again.
License
GPL-3.0-or-later. See LICENSE; the one file that is not covered is named in docs/asset-policy.md.