Clockbench - testing shared memory accumulation in native RT branch (#452) #658
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#658
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@khift363 on GitHub · 2026-12-06 01:34 UTC · original
What happened
I have been running with the native RT branch (#452) for some time now, but one issue I keep running into is shared memory growth over play sessions - so I decided to sit down and formally test it. I adapted a benchmark I'd used already to evaluate parameters to tune my
run.conffile to something dedicated to testing memory growth over a play session, specifically growth incurred by driving.The benchmark procedure is as follows:
The ideal result would be that the total memory in use should be near identical between the two clock stare periods. There's no need to retain any rendering structures or data from the trip; by the end of the 60s, pretty much everything unused should be discarded by then.
I did three tests:
Git config:
b581f7e0a8c8edd2f74d621120b747The results:

There is a very sizeable increase in shared memory usage over the course the benchmark that does not occur with original RT. The forward trip gains +4,288 MiB of shared memory usage between the end of the two clock stare periods; the reverse trip gains +3,844 MiB. Original RT gains +494 MiB; so still some gain, but about 8x less.
The increase in shared memory usage correlates very strongly with the count of BLAS.
Both memory usage and BLAS count plateau in this experiment at about the 7 minute mark. This may mean that it doesn't grow without bound - it just grows a lot. If you have sufficient system memory, perhaps it doesn't even impact you, if this is true.
On the other hand, the performance improvement from native RT is actually quite gigantic. Comparing the two forward results, native RT improved FPS during the driving segment by +22%, reduced hitching by -33%, reduced P99 frame time by -16%, and even the clock stare itself was +11% faster. Huge, real improvements in FPS because of native RT.
Here are zip files of the three benchmarks; they include the logs from VIctory, a separate memory pressure log my clanker made for me, the run.conf file that the run operated on, some git info (although not enough, looking at it now; full details are in the post here), the phase timestamps, and also the audio-rt log from PR-149.
benchmark-053.tar.gz
benchmark-052.tar.gz
benchmark-051.tar.gz
Version
Main at
b581f7e0a8+ PR-452 + rt-7-reuse + PR-149 + PR-455Hardware and system
Proton or Wine version
No response
Your settings
Game log
Logs are included in the benchmark zips
Kernel log (crashes, freezes, "device removed")