diff options
| author | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-31 16:05:55 -0400 |
|---|---|---|
| committer | Takoroka <137927095+Takoroka@users.noreply.github.com> | 2026-10-31 16:05:55 -0400 |
| commit | 75385e994dc8cc8699a918180ee566e8723b8394 (patch) | |
| tree | 81b948f44a8b7ad366c93bcf592e515fc4bd802f /src/common/host_memory.cpp | |
| parent | 9dca3ab2e436e786ab53e862e4d515f620a11669 (diff) | |
texture_cache: don't count deleted images still waiting to be destroyed
The collector deletes images into a ring that destroys them TICKS_TO_DESTROY
frames later, and until then the driver still counts their memory. Reading the
driver's usage every frame, the collector saw no drop after deleting and kept
deleting 40+ images a frame in aggressive mode long after it had freed enough:
once a session reached the critical threshold, frames took over 100 ms for
seconds at a time.
Keep the bytes deleted into each slot of the ring and leave them out of the
reported usage until the ring destroys them.
Diffstat (limited to 'src/common/host_memory.cpp')
0 files changed, 0 insertions, 0 deletions
