vesper-shader: lower HwStage::Ms to cs_6_6 and passthrough vs_6_6 for mesh emulation #36
No reviewers
Labels
No labels
accessibility
benchmark
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
task-claim
telemetry
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/monte-alt--vesper!36
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-36"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Fabrizio-Franco1405 on GitHub · 2026-12-01 19:22 UTC · original
Fabrizio-Franco1405:main→main· +1 −0 · 1 files · 108 commits · closed without mergingNo description provided.
@babagurgur53-wq on GitHub · 2026-12-02 08:36 UTC · original
If you make this work you'll be legendary
@Fabrizio-Franco1405 on GitHub · 2026-12-04 01:02 UTC · original · edited 2026-12-04 01:14 UTC
With the right tools and the best planning, it can be done; we go from having a completely blank screen to loading all the complete textures on RDNA1 graphics.
@babagurgur53-wq on GitHub · 2026-12-04 04:24 UTC · original · edited 2026-12-04 04:32 UTC
@Fabrizio-Franco1405 I tried your fork and on my 5700XT 8GB I'm only getting hair and background textures. This is what I was also getting on other AMD builds that don't support RDNA1. Although this build has by far the best hair quality yet.
@Fabrizio-Franco1405 on GitHub · 2026-12-04 14:29 UTC · original · edited 2026-12-04 20:33 UTC
@babagurgur53-wq Thanks for testing it on your RX 5700 XT! Seeing only hair and background geometry is the exact symptom of running either an older prebuilt binary (before indirect mesh shader lowering + descriptor table binding were implemented) or launching without the software mesh shader environment switch enabled (since hair uses traditional vertex shaders, while characters and room geometry use mesh shaders).
To get the full 3D scene, characters, lighting, and textures rendering on RDNA 1, make sure you build the latest main branch from source in Release mode and launch it with
VESPER_MESH_EMU_DRAW=1:1. Prerequisites
Rust toolchain 1.98.1-x86_64-pc-windows-msvc + Visual Studio C++ Build Tools.
DirectX 12 Agility SDK 1.614.1 (D3D12Core.dll placed inside a D3D12\ folder next to vesper.exe).
Your own lawful dump configured in
vesper.toml(game_dir).2. Clone & Build Latest Release From Source
Open PowerShell and run:
Copy example config and set
game_dirto your dump folderCopy-Item vesper.example.toml
vesper.tomlBuild optimized native Release binary (do NOT use debug builds or old release zips)
(Make sure D3D12\D3D12Core.dll from Agility SDK 1.614.1 is copied into target\release\D3D12\ before running.)
3. Run With RDNA 1 Software Mesh Emulation Enabled
In the same PowerShell session, launch with the RDNA 1 mesh emulation variable set:
What to expect once launched:
Initial shader compilation and texture streaming on the first boot will take a minute or two while the cache populates (AppData\Local\vesper\cache).
Once in the prologue room, all 3D character meshes, furniture, shadows, and lighting should render cleanly at ~5 FPS (~200 ms/frame) on the RX 5700 XT while barrier batching optimizations are still in progress.
@babagurgur53-wq on GitHub · 2026-12-05 00:43 UTC · original
@Fabrizio-Franco1405 Thanks! I can confirm it works now on my 5700XT + 3700x + 32GB RAM with the Series-X profile. I get around 3-4~ fps.
I tried using the series-s profile but that only shows a white screen. I think for our GPUs, Series S might be our only option.
Great work though, I didn't think anyone would get RDNA1 working.
@babagurgur53-wq on GitHub · 2026-12-05 01:34 UTC · original
I was able to get between 10-15fps in the prison using this:
$env:VESPER_OUTPUT = "1920x1080"Without this it was outputting at 4K
@babagurgur53-wq on GitHub · 2026-12-05 01:41 UTC · original
I was able to get between 18-26fps in the prison using VESPER_OUTPUT and VESPER_DISPLAY_MODE = 1280x720. This went down to 10-13fps in the boat chase scene, but then my entire computer crashed.
@Fabrizio-Franco1405 on GitHub · 2026-12-05 15:46 UTC · original
RDNA 1 Technical Breakdown: Why These Crashes & Bottlenecks Happen and How We Are Fixing Them
Hey
@babagurgur53-wq,Thanks again for testing on your setup and sharing exact numbers from both the prison interior and the boat chase. Since you've been following the fork closely, I wanted to write down a clear technical breakdown of why each of those issues is happening under the hood, what we discovered while profiling RDNA 1, and the exact measures we are putting in place so we don't hit walls or regressions as we move forward.
1. Why the Fork Started Heavy (Mesh Shaders First, Series X 4K & Software RT)
When I created this fork, I jumped straight into solving the #1 blocker for RDNA 1: getting actual 3D geometry to render. Because the RX 5700 XT (GFX10) has no hardware Mesh Shader pipeline, upstream Vesper simply drops ~3,500+ mesh draws per frame—which is why upstream runs fast on RDNA 1, but only renders an empty silhouette.
Once we got the compute-based Mesh Shader emulation (
mesh_emu) working and started profiling frame times, we realized something critical about upstream's defaults:Default Series X + Native 4K Output: Unless overridden via environment variables (
VESPER_OUTPUT/VESPER_DISPLAY_MODE), Vesper defaults to the Xbox Series X profile rendering at native 3840×2160 (4K). That is why simply forcing1920x1080immediately jumped you to 10–15 FPS and1280x720jumped to 18–26 FPS in the prison interior—our 5700 XT was previously shading 4× the pixels on top of emulating mesh shaders in compute.Hidden Software Ray-Tracing Overhead: Even with the BVH acceleration-structure builder disabled, the game still dispatches several compute shaders (
7a071f906f98311b,919bafe017d59512,9c15f00bc28065f6, andbba90b2f0ff2eada/CS_Gather_Classified_9) that execute heavy software ray/probe loops. On RDNA 1 (which lacks hardware Ray Accelerators), those 4 shaders alone were eating 400+ ms per frame before we began filtering and replacing them.2. Why We Are Optimizing Series X Mode First (Before Switching to Series S)
You mentioned that Series S (
series-s) might be our only realistic option on RDNA 1, and for daily gameplay on an 8 GB card, you're right. However, staying on Series X mode while we optimize is intentional:3. Root Causes & Fixes for the Exact Issues You Hit
A. Full System / Driver Crash During the 720p Boat Chase (10–13 FPS → Crash)
The bindless texture streamer (
HEAP_TEXTURES) tries to stage and upload hundreds of megabytes of new mipmaps per second.Our
mesh_emuring buffer allocates vertex, index, and primitive slices every frame for thousands of indirect mesh draws.On an 8 GB VRAM card like the RX 5700 XT, unbounded staging + dynamic ring allocations exhaust local VRAM and spill over into shared system commit, triggering a Windows GPU driver timeout (TDR) that takes down the whole system.
VESPER_RESIDENCY=1) and capping per-frame texture upload budgets (VESPER_TEXTURE_STAGE_MB=96) so streaming throttles smoothly across frames instead of bursting past 8 GB.mesh_emuring-buffer allocations so oversized or back-to-back indirect draws wait/recycle safely instead of overflowing memory.B. White Screen on the Series S Profile (
series-s)PS_CalculateExposure), and buffer layouts than Series X. Right now, uninitialized or out-of-range HDR/exposure values blow out the tone-mapper into solid white (NaN/Infor uncapped EV).VESPER_HDR_SCRUB=1) and scene-aware exposure clamping (VESPER_EXPOSURE_CLAMP=1) specifically against the Series S render-target path so it outputs a clean image without whiteout blowups.C. Geometry Corruption, GPU Hangs & Dark Interiors
mesh_emu: Fixed a race condition where compute dispatches were overwriting vertex/index ring slices while the rasterizer was still drawing the previous mesh, eliminating exploded triangles and device-removed hangs.bvh_input): Cut out ~430 ms of dead compute work that only fed disabled RT structures, bringing 1080p frame times down from 600+ ms to ~130–218 ms.VESPER_AMBIENT=1+VESPER_AMBIENT_FLOOR=0.15): Because hardware RTGI is off, interiors like the prison cell went pitch-black. Enabling Vesper's screen-space radiance estimator restores natural bounce lighting in interiors at near-zero GPU cost, and we are currently finalizing UAV target clearing (RWTexture2D/RWTexture3D) forbba90b2f0ff2eadaso skipping it doesn't leave frozen portal/window reflections behind.4. Safe Flags to Use Right Now (Until Baked Into Defaults)
If you test again before the next commit lands, use these flags together to avoid 4K overhead and prevent 8 GB VRAM overflow crashes:
5. Issues Tab is Now Enabled — Please Open Issues!
I just enabled the Issues tab on this fork so we can track every bug properly instead of losing details in commit comments.
Whenever you run into a crash, white screen, memory overflow, or weird visual artifact, please open an Issue in the repo and include:
Your GPU & RAM specs (e.g. RX 5700 XT 8GB / 32GB RAM).
The exact environment variables you launched with.
Which scene/profile triggered it (e.g. Boat chase at 720p, Series S boot) and any
WARN/ERRORlines from the console.Your tests are giving us real data on RDNA 1 behavior that no upstream repo is tracking—keep them coming!
Pull request closed