Skip to content

vulkan/malloc: switch to wall clock garbage collection

Niklas Haas requested to merge haasn/libplacebo:wallclock_gc into master

Instead of counting the number of vk_malloc_garbage_collect calls, which can vary wildly (e.g. being incremented on every pl_gpu_flush), use a real wall clock estimate.

The default expiry time of 100 ms is probably fine, it leaves plenty of headroom for typical video playback (which should surely exceed 10 fps!).

Merge request reports

Loading