
CS-Fundamentals
A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.
它针对一个微妙的 CPU 端卡顿提供了具体、可测量的修复方案——该卡顿此前被游戏自身的 FPS 计数器忽略——并配有汇编分析和现场演示。
hello. this is a very build-specific POC for a weird audio wait in GTA V Enhanced.
It started with me posting this early-access report because the game would say "247 FPS" insisting everything was fine.
My eyes disagreed. Someone was lying, and it wasn't the GPU.
The slow frames looked CPU-side and someone reminded me that Legacy FiveM had that suspiciously useful
game_useSynchronousAudio convar, and off I went.
A while later I was looking at a three-slot audio queue selected through TLS. normal evening :D.
The actual notes are in docs/notes.md. They contain assembly, guessed names, half-finished thoughts, and the current reason I do not completely trust V2 yet.
https://github.com/user-attachments/assets/abbcb3bd-ffc7-4ebe-9904-5320b3c08154
The overlay sits around 260 FPS before the patch and about 499 FPS after it, so the visible difference in this clip is roughly +239 FPS, or 1.9x.
| runtime state | visible FPS |
|---|---|
| original | ~260 |
| patched | ~499 |
the stall disappears, frame pacing cleans up, and the game still makes noises. honestly, that last requirement became more important than expected.
.\audio_queue_poc.exe --status
.\audio_queue_poc.exe --restore
.\audio_queue_poc.exe --apply
.\audio_queue_poc.exe --apply-v2
--status: stare at the bytes, touch nothing--restore: original runtime code--apply: V1, removes three coarse/bounded queue delays--apply-v2: V1 plus a zero-timeout update-side slot checkRestarting GTA restores the original mapping too. Nothing on disk is patched.
V2 is the interesting one, but "interesting" and "finished" are not synonyms. Three queue slots might be plenty. Three queue slots might also be a future audio glitch wearing a fake moustache. needs longer testing.
x64 Visual Studio 2022 Developer PowerShell:
cl /nologo /std:c++20 /EHsc /W4 /O2 src\audio_queue_poc.cpp bcrypt.lib /link /out:audio_queue_poc.exe
GTA5_Enhanced.exe 1.0.1158.13
timestamp 0x6A4F97F6
image size 0x05B81000
sha256 0C52864D4521D9C9D441348AA1156958792DDE8825D0297C851753F167336401
The program checks that identity plu
GTA Enhanced/FiveM Gen9 audio queue POC: ~260 to ~499 FPS in a same-scene test
根据分类、Topic 和编程语言匹配的相似项目。

A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.
A tool that converts 7–9 hand-drawn story keyframes into a 35–45 second vertical video with progressive line art and color animation, configurable via JSON and renders with HyperFrames and GSAP.
A Remotion-based tool that converts Chinese story text or ordered hand-drawn images into vertical hand-drawn diary-comic animation with handwritten captions, left-to-right reveals, optional page-curl transitions, and silent H.264 output for post-production dubbing.