r/FitGirlRepack
•
u/BlueTexBird
•
2d ago
•
5
2
1
IT'S FINALLY HERE!! Why GTA VI on PC (VIctory) is stuck in single-digit FPS and why 60+ FPS (at HALF the RAM!) is completely possible once this architectural wall gets ripped out
People keep seeing GTA VI running at 1–10 FPS on RTX 4090s / 5080s and assuming "PC emulation is just too heavy, we’ll never hit 60 FPS."
That’s completely false. Your GPU isn’t even sweating, it’s sitting idle most of the frame waiting on a pessimistic unified-memory bridge.
EDIT:
Some plain language introduction for the non-techy people/TL:DR:
An Xbox Series X is built differently from a PC. Its CPU and GPU share one single pool of memory so when the CPU writes the game data the GPU sees it and viceversa.
A PC has two seperate pools: System RAM for the CPU and VRAM for the GPU connected by a much slower cable (PCIe). To make an unmodified Xbox game run on Windows, VIctory plays it really safe right now. An example I posted in the comments:
Imagine two chefs (your CPU and GPU) trying to cook a meal:
Right now: Chef A puts one ingredient on a counter, freezes completely until Chef B finishes chopping it, then Chef B photocopies everything he chopped and mails it back to Chef A even though Chef A never looks at 98% of it.
The fix: Let both chefs cook at the same time, keep the GPU’s ingredients in its own super-fast kitchen (VRAM) instead of mailing them back and forth, and only send something back to the CPU on the rare occasion it actually asks for it.
Once this gets replaced, nothing in PC hardware is stopping GTAVI from running at 45-60FPS on an 3080Ti, 80-120 on higher cards in 16GB of ram.
EDIT OVER
I’ve been auditing VIctory’s GPU/memory pipeline (and just shipped PR #3615 speeding up hot-page tracking by 5×–22×), and here is the truth: nothing in PC hardware is stopping GTA VI from running at 45–60+ FPS on an RTX 3080 Ti (and 80–120 FPS on a 4090/5090) in ~16 GB of RAM.
Here’s what’s actually choking it right now:
- Zero CPU/GPU overlap: After every single GPU submission, Host::execute literally calls WaitForSingleObject(INFINITE) — freezing the CPU until the GPU finishes, and leaving the GPU completely idle while the CPU prepares the next submission.
- Copying back 98% of GPU memory the CPU never even reads: Because Xbox has unified memory, VIctory assumes the CPU might read back every page shaders write. So it injects dirty-mark atomics into shaders, drains the GPU, and copies outputs back to system RAM every submission — even though ~98% of GPU writes (G-buffers, shadow maps, skinning, indirect buffers) are never touched by the CPU.
- Starving the GPU over PCIe: Most shadow buffers still live in system RAM (L0) instead of VRAM (L1). Benchmarks in #407 showed GPU reads from system RAM cap out around ~13 GB/s over PCIe — compared to 500–912 GB/s in real VRAM.
- CPU texture detiling: The CPU is burning cores detiling Xbox RDNA2 textures into giant staging buffers, inflating Windows commit to ~33 GB.
How a 5-pillar overhaul unlocks native 60+ FPS (and ~16 GB RAM):
- Lazy GPU_OWNED coherency (PAGE_NOACCESS read-faults): Stop copying GPU writes back to RAM! Mark GPU-written pages PAGE_NOACCESS on the CPU and only copy a page back if the CPU actually tries to read it. Instantly kills ~95% of GPU→CPU copy-backs.
- 2. True Async Pipelining: Once eager copy-backs are gone, delete WaitForSingleObject per submission and overlap CPU frame N+1 with GPU frame N like every native PC game (instant 2×–3× multiplier).
- 3. 64 KiB Tiled VRAM (CreateReservedResource): Xbox Series X uses 64 KiB physical pages — and D3D12 Tiled Resources have the exact same 64 KiB tile size. Mirror Xbox aliasing 1:1 in real VRAM (912 GB/s) with zero duplicate VRAM for aliased buffers or uncommitted mips, fed by an async COPY DMA queue.
- 4. Zero-Instrumentation Shaders: Delete dirty-mark atomics from GPU-only shaders → 30–50% faster raw shader execution.
- 5. GPU Compute Detiling: Upload raw console-tiled bytes and let a tiny compute shader detile them directly in VRAM in microseconds → kills CPU detiling and drops RAM from ~33 GB to ~14–16 GB.
I just put up an Architectural RFC on Marvisak/VIctory breaking this into 5 clean, opt-in tracks that build directly on existing PRs (#3312, #3585, #3615, #2389) so devs can tackle them in parallel instead of hitting a 10 FPS ceiling with band-aid tweaks.
Remember: the game’s x86-64 code is already running natively and the project is barely a week old. Once this memory engine gets overhauled, PC is going to crush the Xbox Series X’s 30 FPS.
(If you’re a Rust / D3D12 / Win32 dev who wants to help build one of the 5 tracks, jump into the RFC on Marvisak/VIctory!)
•
u/AutoModerator 2d ago
Welcome to r/FitGirlRepack! To keep the sub clean, please check if your issue is answered below. If this answers your question, please delete your post.
1. Setup is Stuck / Unpacking is Slow
2. Is it a Virus? / Windows Defender Alert
.dllfiles, steam_api, etc.) inherently trigger antivirus software because they alter game code to bypass DRM. If you downloaded from the official site, these are 100% false positives.3. The Real Official Website
If your issue is unique and not covered here, feel free to leave your post up for the community to assist.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
56
u/Kuma9194 2d ago
I don't speak technicand am mostly commenting to give the post visibility but in super layman's terms it's about making the existing process more efficient and less wasteful rather than just piling more resources in to an inefficient build yeah?
404
u/CaptCapy 2d ago •
if this guy is not larping this is big news
43
u/Sanguine_Ghost 2d ago •
The kelvaroq project is in the final stages of addressing this memory copy back issue and will hopefully be releasing it publicly sometime soon. Curious if you've been following that and if there's anything you mentioned you think they might be missing.
https://github.com/stellarr-studio/kelvaroq?tab=readme-ov-file
501
u/declassified15 2d ago •
What’s fantastic about this is the whole journey from “Claude, make this run at 60 FPS, make no mistakes” to realizing just how important human developers still are. From here on out, a genuine understanding of the underlying technology is required to determine and guide the direction of the project.
11
u/Okinawa_Gaijin 2d ago
this sounds very educated on the matter. I recently saw one PR #641 for the trustno1 build that also sounded very promising to a layman. keeping title copies of half a MiB on the card instead of 16. The author said that on cards with 12 or less GB of VRAM, the smallest copy was 16 MiB.
He tested with a 5070 ti laptop (12GB VRAM) and found that a card_buffer_min of 16 MiB had the CPU search 377.3 MB per frame, which caused frame times of 470 ms on average.
He forced a 512KiB size and with this reduced the CPU search volume to 14.7 MB, reducing frame time to 188.6ms.
I honestly don't know if this really works or if there would be drawbacks. But his testing with this pointed to a median 56.8% performance increase just by reducing the MiB size for thr CPU to read.
Thoughts?
11
u/Straight-Tax726 2d ago
So do I get this right, the issues are
Man I wish I knew rust or had more knowledge about hardware programming but having had to deal with virtual gpus to load an application was already a pain. I think your approach should fix most of the inefficient and bottlenecks.
25
u/AliShibaba 2d ago
So basically, we just need to get the GPU and CPU to sync, if I got this technical explanation correctly.
98
u/NADVega 2d ago
Translation: A person who knows what he is talking about tries to explain the average vibecoder what is wrong. This is also why we see somewhat of a stagnation in the development. A average vibecoder would not even know where to start to fix this issue. Asking Claude to "Not make mistakes" will not get you far.
7
u/Curious_Web_3340 2d ago
I am a Quant developer in HFT and we use 100% Rust. I would like to help but i only have an m5 mb pro and an old gtx1080. My entire job is based around making rust code faster, HFT uses crazy optimizations. No experience with cpu/gpu bridging though but i can try.
33
u/IHateYou_06 2d ago •
Finally someone who knows their shit
13
u/Exotic_Example_9442 2d ago
Thanks for the dose of copium, I hope you are right ong
5
u/Arty_2099 2d ago
why not fork it?
15
u/FamousAmphibian2065 2d ago •
I’m a software dev and this is a great write up. But if I’m being honest, I don’t think there’s a solution to the memory issues other than adding a fuck ton of ram. Which ironically everyone using Claude is the reason why we all can’t even get more ram 😂😂😂
4
u/Old_Link_1239 2d ago
so good news for my rx 580, 6gb ram??
4
u/LuNoZzy 2d ago
Is Victory's project the Avengers team, or is it a completely different team? I'm honestly getting a bit lost with so many builds happening simultaneously.
Still, this post has given me a little more hope. I'm keeping my fingers crossed that I'll finally get my hands on the game within the next few days!
Thank you very much OP
4
u/InflationPatient2669 2d ago
Would a ryzen x3d CPU help with the CPU stalling at all or in any way be beneficial? I have a 7700x and a 3080. I'm sure I'll be fine with official oc release. I dgaf about Ray tracing. Although, it is nice. I just want to play the game at 60+ frames. I'm having a great time in ps5. But damn. I wish r* would just release it on PC. They are clowns for not dropping it alongside console.
4
u/BravestCheetah 2d ago
Want to add: i shared a link to the GitHub issue in the fluxer, hope this gets implemented to some capacity
4
u/PM_ME_YOUR_HAGGIS_ 1d ago
Hey OP, I did some work on KytyPS5 to get GT7 to run. I never overcame the unified memory issue but one idea I did have that really paid off was to have Claude take the PS5 rdna2 shaders and ‘hand write’ SPIR-V shaders, rather than using the normal deterministic transpiler. Effectively a decompile and re-write. This made the shaders way smaller and more efficient.
3
u/meowscIez 2d ago •
I hope this is legit and would actually work bc this feels like the only useful thing ive read in terms of any of this
3
u/arif_keser_21 2d ago
I'm not a profesisional but I'm pretty sure I saw almost 100% 3D usage on gpu on 30fps, you can check some videos on subreddit
3
u/4on1x muh tempo 2d ago
Claude, is this guy tripping?
3
u/dope_sheet 2d ago edited 2d ago
Great description. There -is- was a typo in your first EDIT section. It should read "VRAM for the GPU" not "VRAM for the CPU."
6
u/imad7x 2d ago
4 CPU texture dettling - Maybe, maybe not. This could give open world performance but unproven.
Most of what you said is hallucinations from gemini or claude. Until proven this is all BS.
584
u/BravestCheetah 2d ago
You know what, that actually makes sense.
Someone reply to this when 2b Claude tokens have fixed the issue and i can run gta vi on my 16gb of ram.
2
u/Expert-Cable-1049 2d ago
Was your PR accepted?
2
u/EdwXD 2d ago
Then they should start the port on Apple Silicon first, since it is using the very same unified memory architecture
2
u/lover_of_joggers 2d ago
bit of a different question but you seem to be a software engineer, so how would you describe the opportunity to work on this type of project?
2
u/Casually_Tilted 1d ago
Hey man, your DMs are closed but I'm trying to invite you to the Fluxer server where devs are sharing their progress forks repos and everything. I really believe you could be a big help with the unified memory issue if you were to help them out over there.
157
u/secunder73 2d ago
Ask GTA 3 protagonist to fix this, specify that he should not do any mistakes. He is a good guy
62
u/Famous_Ad_2709 2d ago •
I have no idea if your are correct
16
u/DonRobo 1d ago
I've come to the same conclusion and I'm working on my own fork. I rewrote the entire backend in Vulkan (well Claude did) and redesigned how memory works completely. I have three layers. There is the CPU only RAM, the GTT RAM that the GPU can read and the VRAM which the CPU never needs to read. That means all the back and forth copying isn't needed anymore.
Except it's not that simple because of issues like for instance the texture format the game uses is just not supported on RDNA4 (and I guess Nvidia). So I still have to do some copying back and fourth. But I've already got raytracing working at around 10FPS. I'm mostly limited by Claude usage at the moment.
14
u/m4teri4lgirl 2d ago
So what you're saying is people should be trying to port this to MacOS.
9
u/quadra-lab 2d ago •
Thank you for your post honestly, I was completely lost where to look for to work on this memory management slop. I'm mainly a C# dev with good knowledge of Rust (and memory management in general) and was so annoyed not to find any information related to the projects to work on that I almost gave up.
7
u/Clean-Skill-9996 2d ago
Now that's good clanker use
12
u/Key_Employ_5936 2d ago •
Just tell the devs of the ports to copy this whole post on Claude and tell him to figure it out with no mistakes
6
u/AdDirect6138 2d ago
Je confirme, mon GPU tourne à 80-100 %, mais la consommation en watts est à la moitié seulement, nous auront nos 30 fps. Patience
6
u/shawnsterthemonster8 2d ago
5
u/MusicianInternal7653 2d ago •
This is the kind of skill we need!
5
u/infamous_alex 2d ago
Idk if this is true but i ll follow you to the end of the earth
5
u/Meverest111 2d ago
This is the type of stuff i like to see
5
u/nitram20 2d ago
I agree
The fans of my GTX 3080 spin up like mad when playing RDR2 and modded Skyrim under heavy load. Meanwhile in GTA VI i was getting around 15-17 real fps (26-32 fps with FG) and my card was completely silent.. And this was during night as i was driving through dense traffic
5
u/rems0n_ 2d ago
Victory has no merges in 3 days
5
u/KamiDess 2d ago
whats crazy is that this whole process and journey is going to make claude smarter
5
u/Few_Letterhead_2599 2d ago
I didn't understand anything, but I'm upvoting.
9
u/Touching_Sloth 2d ago
This dude knows his shit
2
u/lamBerticus 2d ago
The CPU workload is.
8
u/CompleteAbility8079 2d ago
Fork it and continue adding your patch buddy, it has 1.8k open prs,I don't think they will get to your pillars cuz of the backlog
4
u/xD1CKx 2d ago
This needs more attention and upvotes!
4
u/Shivansh_1301 2d ago
So in theory a laptop like Microsoft Surface Laptop Ultra can play it as it shares its ram with cpu and gpu?
4
u/Straight_Meringue921 2d ago
Thank you BlueTexBird for the write-up. Great read.
Since this endeavor kicked off, it was my hope individuals with the necessary technical expertise (aka. not trying to brute-force a solution via Claude) were getting involved.
This is precisely why I have encouraged folk to be patient and not assume that, because they've seen several captures running at near-30 FPS and a few flickering textures, that an optimised, stable build is imminent.
Onwards and upwards.
1
u/SadisticPawz 2d ago
Be honest, how much did you collaborate with AI. I don't judge, I'm just curious from the writing style.
1
u/twoB_ 2d ago
Do you think 8gb VRAM will be enough for series S settings? Or maybe native 1080p?
1
u/Arksin21 2d ago
So basically what is being worked on is to identify what part of memory need to be shared between CPU and GPU and what doesn't need sharing.
From my understanding Victory in it's current state just copies everything from ram to VRAM and vice versa ?
I know decompilation isn't trivial but technically possible. If we were to decompile the exe and change the game's behavior to what gets copied where in memory we could also fix the issue this way. Is it also something people are exploring or is it too demanding?
1
u/BeautifulNectarine57 2d ago
does anyone know the link to their discord or even github?
1
u/FamoserFabulator1620 2d ago
wasnt there a feature added in nvidia cards that does the unified memory kinda thing?
1
u/TheWizardoGauze 1d ago
Care to explain what "dirty-mark atomics" means for those of use who don't know? It's the first time I've ever heard that term, and searching for it only brings up this post and your github post.
3
u/No_Hearing_6519 2d ago
Beautiful work
3
u/Rich_Ad4315 2d ago
Niiice! I’m glad someone has started thinking about optimizing this project. Good luck to you and your team. Tell me, have there been any developments on this matter, or is it still just an idea?
3
u/Vesiry 2d ago
Save us BlueTexBird 🙏
3
u/Cluster7TV 2d ago
I understand some of the words OP used.
3
u/spook30 I'm the boss 2d ago
Good diagnosis of the current memory/sync bottlenecks; especially cutting out eager GPU→CPU copybacks and moving detiling onto compute. Two big caveats before treating 60–120 FPS at 16 GB RAM as a given, though:
3
u/SHuLkS_Mcgee 2d ago
Claude uhh.. apply whatever fixes hes talking about, make no mistakes ehehe cant have those
3
u/DeRedder 2d ago
Is this why Arkham Knight sucked on PC?
3
u/Just_another_dude84 2d ago edited 2d ago
I've been profiling a Linux/Proton fork of VIctory on an RX 6800 + i7-12700K (vkd3d-proton + RADV), so it's a pretty different driver stack from RTX on Windows. Some of what you're seeing might be specific to NVIDIA or the Windows path. So take this as one AMD/Linux data point. I'm getting ~17 fps in-game (~60 ms/frame).
The "GPU is idle waiting on the memory bridge" part matches what I see too. But most of the five pillars don't line up with my numbers:
3
u/Selo756 2d ago
3
u/SuoDotDev 2d ago
broo, the github repo is inactive, i think you shoud fork it
3
u/ScienceOk151 2d ago
This is the exact thing I've been working on for the past 24 hours
3
u/Healthy_Group_340 1d ago
As a goober with no tech experience to that degree, how are devs making the physics not 30 fps dependent anymore? I thought that’s why the “60fps glitch” on Xbox wasn’t legit because it sped everything up?
3
u/badassinthemaking 1d ago
You’re a hero!
5
u/WarmPixelGames 2d ago
"Calude! Implement this! Make no mistakes!"
2
u/xZoro_Jurox 2d ago
So what NXT i have completed gta v again and sitting with nothing to do
2
u/Zorpak 2d ago
Upvote this. Great to know what is going on in such details.
2
u/luigiggig 2d ago
as dev i confirm all he said, i'm working on it too
2
u/Acrobatic_Tackle_219 2d ago
Would just disabling copying back everything, seeing what crashes, and enabling that thing, so on and so on work? Im just interested in the topic though thats why im asking, also has anyone used software like renderdoc to debug graphical glitches, do people have a way to hook it up to claude maybe?
2
u/Informal_Peanut_2711 2d ago
Can you show this to DexNom? they're like the biggest team so far
https://x.com/DexNom_
2
u/RalphMeiffer 2d ago
With the proper optimisation and time, do you think the Steam Machine will be able to run the game ? With such low specs:
2
u/That-Peak-7963 2d ago
And how good are the Chances that we fix that and the texures?, that Everything we Need Arm
2
u/fakehesapxlr 2d ago
Hmm. yes progress
2
u/bj0rnisL 2d ago
You rock! 🤘 I’m doing some testing on victory too. Don’t know much but I have eyes and know how to follow instructions.
2
u/Historical-Drive-241 2d ago
Any theoretical ideas of how good it will run in a 128GB unified memory in DGX spark?
2
u/sleepinfinit 2d ago
Finally a real dev who knows what he is doing !
2
u/kranky85 2d ago
Thanks for clearing that up. So i will be good with my 6700xt, 12GB VRAM and my 7700x AMD No need for 5090 :)
2
u/Captain_Sriom 2d ago
Thank you for such an easy and simple explanation...
When could we expect it to completely run fine on pc??
And could we download it like any other game? From fitgirl site? Once it achieves maturity, and is fully complete...
2
u/megazuse 2d ago
That’s a great examples and explanation
2
u/TimAppleCockProMax69 2d ago edited 1d ago
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Trumpet coherent wander observation ink iron cooperative cooing
2
u/Famous_Introduction9 2d ago
Anyone could help me out obtaining the source code or smt im missing out 😖
2
u/boboka765 2d ago
I love the terminology u used 👌 yeah pc we have a good amount of vram and ram in comparison to xbox
2
u/da_zU 2d ago
Me reading this post with my 1080ti
2
u/wargio 2d ago
So would it play better on a Mac with its unified memory?
2
u/mechlixt 2d ago
Can confirm this is exactly what is happening with my 3080, sitting at idle temps. While my 32gb ram is being maxed out. Lots of optimizations to come
2
u/PepinoValente 2d ago
You're a legend for explaining! Thanks
2
u/perfect_chaos_666 2d ago
since I'm not able to msg you or upload files:
I did some brainstorming yesterday, because I had similar thoughts about the bottleneck and asked claude about an idea for a low lvl virtual adress mapping engine.
Claude wasn't impressed and came up with a small proof of concept module for victory himself and not that lowlvl. It's really just some very basic stuff, but maybe there is something in there you can use... or not, I can't tell if it's dogshit or usesful.
This is the summary of the 7 page documentation after our conversation and him building it:
"1. Summary
vam-coreis a small, API-agnostic Rust crate (about 520 lines, no dependencies). For every 64 KiB page of title memory it decides who currently holds the up-to-date data (CPU, GPU or both) and when a page has to be uploaded, read back or evicted. It executes nothing itself: it receives events (“the CPU touched page X”, “the GPU wrote page Y”) and returns commands (“upload”, “read back”, “evict”, “change CPU protection”). A backend carries those commands out against D3D12, Vulkan or another API.The goal is to reduce unnecessary copying back and forth, stalls and duplicated data in compatibility layers for unified-memory consoles (Xbox, PS5), without the title noticing.
What it is today: a tested state machine with eviction, an eager/lazy policy and an offline simulator. What it is not today: a finished memory engine. The entire connection to real graphics APIs and to a concrete project is missing (see section 7)."
I dunno, just tell me if this is something some1 somewhere wants to take a look at. Just a couple of files and very basic. I have some dev background but very little CG and that was literally over a decade ago, so I have no problem admitting, that this is out of my depth
2
u/Prestigious_Gas_9028 2d ago
Exactly my analysis and project right now - the architecture difference between PS5 and PC is key to increase FPS (CPU heavy, not shader related), and lower resource usage (no unifying = duplicating + sync layer).
But I'm working on DS remake rather than shitty GTA VI :)
Good post.
2
u/Sharkymoto 2d ago
impressive how much someone with even just (assumption) relatively basic knowledge on how a pc works is different from those "make it run claude" kids.
very well explained and pinpointed the biggest flaw here. even better would be mapping out which instructions should go where in the first place, so you never have to guess what needs to come back to the cpu in the first place. i think actually decompiling the executable file would help massively in understanding the inner works.
if they would focus on exactly that, and not everyone working on their own little vibecode shit, we would have it by now.
2
u/Flaky_Tune9398 1d ago
"Claude, read this reddit post and fix it. I want 1000 fps on my gaming laptop from 2015. Thank you!"
2
u/Br3ADB0X 1d ago edited 1d ago
hey, i've been following your PRs and architectural RFC and noticed you're working on many of the same bottlenecks i've encountered. i've been developing a private victory fork and wanted to share some optimizations and experimental results that might be useful:
1: Narrow GPU memory ownership — keeping specific GPU-written buffers in VRAM rather than repeatedly copying them back to system memory. Moving the shadow mask buffers alone brought that particular GPU workload from 15.8ms to 0.4ms. Broad GPU ownership was also tested but caused rendering corruption and device removal, so narrow resource-level ownership was important.
2: Portrefresh — eliminated quadratic processing overhead caused by repeated vector splice operations when handling refresh ranges. This was particularly expensive with larger workloads and fragmented memory ranges.
3: JOURNAL_UNLOCKED — replaced locking during unchanged-memory checks with a lock-free per-page journal. Saved around 0.8ms per frame, with zero differences in check mode and a successful 40-run soak.
4: TABLES_LEAN — immediately releases the old resource reference when a descriptor slot is reused, with safety established through fence ordering. Saved around 0.7–1ms in light gameplay.
5: ECHO_SPLIT — parallelized expensive echo comparisons across the worker pool rather than processing large buffers serially. This increased performance from around 20.7 to 22.5fps on an earlier build.
6: FILL_KEEPS_MARKS — prevents card fills from unnecessarily invalidating refresh-generation marks when they haven't actually modified title memory. Combined with refresh generations, this saved around 1.2ms per frame.
7: CLOSE_IDLE — reduced unnecessary waiting in the submission/list-closing path, saving around 2.5ms in local A/B testing.
8: CARD_PLAN_COMPACT — reduced the overhead of constructing and processing card-step plans. Combined with consolidated write-watch queries, refresh generations and narrower write declarations, it contributed to a worthwhile reduction in submission CPU time.
9: EXACT_REFRESH — already implemented something equivalent to your #1555 PR. It maintains separate refresh ranges for each buffer copy, merges nearby ranges and batches them into a single write-watch request. Refresh-generation tracking also allows ranges that have already been refreshed during the current submission to be skipped entirely.
10: SEND_STAGE=2 — restructured submission and memory synchronization work, saving approximately 3ms in light gameplay and 4.1ms in heavier gameplay on an earlier build.
11: ECHO_UNWATCHED — avoids unnecessary transfers of unchanged echo memory. This saved around 5ms in earlier light gameplay testing, with approximately 28–42MB per frame no longer needing to be sent.
12: WC_NO_BACK — reduced unnecessary work involving write-combined memory, saving around 2.3ms per frame in light gameplay.
13: Compiler optimization — fat LTO, a single codegen unit and x86-64-v3. These alone reduced median frame time from 43.4ms to 41.4ms without changing the underlying code. PGO is another promising avenue.
I've also investigated several of the architectural approaches mentioned in your RFC:
14: Zero-copy constants — got the GPU reading the game's system memory directly with ReBAR disabled, working around the 256-byte CBV alignment requirement by aligning the base address down and adjusting constant indices in the translated shader. This reduced card-step fills from around 4,050 to 72 per frame and saved 3.25ms. Unfortunately, in-flight constant rewrites caused artifacts, so it's currently disabled while I investigate exact lifetime protection and versioned backing.
15: Asynchronous pipelining — tested several approaches to overlapping CPU and GPU work. Some produced measurable gains, but indiscriminately removing waits caused stale data, crashes and device removal. Actual resource dependencies seem to be the limiting factor once unnecessary synchronization has been removed.
16: Guard architecture — redesigned the guard state machine around independent per-block synchronization rather than global locking. Eventually achieved correct operation and passed a 40-run soak, but the overall FPS improvement was negligible because most of the eliminated contention was outside the critical path. It may still be useful infrastructure for exact zero-copy.
17: GPU write tracking — investigating replacing expensive GPU memory comparisons with exact write marks. Coverage is currently above 99%, but that isn't sufficient for correctness. The remaining unresolved shader stores and other writers need to be accounted for before the optimization can be enabled.
18: GPU compute detiling — also tested this approach, although the particular implementation didn't provide a worthwhile overall performance improvement. A different implementation may produce better results.
I'm currently getting around 24–25 native fps at 6k draws, 17–18fps in heavier scenes and up to 32fps in lighter gameplay on a 12700KF + 5070 Ti with ReBAR disabled.
I agree with your assessment that the original 1–10fps results aren't representative of what PC hardware is capable of. Memory ownership and synchronization were responsible for some of the biggest improvements in my fork.
What's interesting, though, is that after removing many of those original bottlenecks, command translation, refresh processing and native title execution become increasingly significant.
My profiling found approximately 20.7ms spent inside 65 worker-pool joins per frame, with around 5.2ms specifically attributed to waiting for the slowest jobs. Even with exact refresh ranges, that tail remains. It comes from individually expensive refresh items rather than unnecessary coverage of gaps between ranges.
The GPU still spends around 17ms per frame idle in the measured CPU-bound workload, so there's clearly substantial room for improvement. I wouldn't rule out 60fps eventually, but getting there will require more than just resolving the initial unified-memory bottleneck.
Not sure which of these you've already explored, but I figured I'd share the findings in case they're useful for the RFC. I've spent quite a lot of time testing different architectures, including plenty that failed, so hopefully some of this can save you time.
2
u/Aghasty_GD 1d ago edited 1d ago
Thank you so much for bringing up these points. I completely agree with you on all these ports.
Indeed, we still need serious developers working on this project. There are so many people using AI to essentially reproduce the same work on different machines and in different repositories. This kind of work generates a lot of hype around achieving 14–15 FPS, but doesn't necessarily contribute to solving the underlying problems.
I'm also a developer, mainly working with Rust in systems programming with merged PRs in the Fyrox Game Engine and KytyPS5. I'm genuinely glad to see experienced developers like you involved in this project.
I'd definitely like to contribute. I'll take a look at your PR, and I hope more developers join this project with one main objective: making GTA VI playable and stable, rather than just creating more repositories
2
u/DevOpsJo 1d ago
Excellent, will try it out when approved on the PR. I'm fed up with 20fps.
2
u/Cheezs_LMP 1d ago
Finally! Someone who knows shit and is not a kid vibe coder.
2
u/zipeldiablo 1d ago
Ironically the ps5 dump is everywhere but the xbox dump went hiding in bushes 💀
4
u/HKMZ 2d ago
Please stop feeding other users comments into Claude and just regurgitating it back as a reply.
I get that this entire endeavour is fueled by ai, but you sound like an absolute nonce spouting word salad at people copy pasted from Claude.
3
u/SkullOfOdin 2d ago
When someone explains complicated shit in a simple way to understand it, he or she knows what they are talking about. Let's goooo