Skip to content

d3d11bufferpool: Fix heavy CPU usage in case of fixed-size pool

Seungha Yang requested to merge seungha.yang/gstreamer:d3d11dec-cpu-usage into main

There's no reason to release GstMemory manually at all. If we do release GstMemory, corresponding GstBuffer will be discarded by GstBufferPool baseclass because the size is changed to zero.

Actual cause of heavy CPU usage in case of fixed-size pool (i.e., decoder output buffer pool) and if we remove GstMemory from GstBuffer is that GstBufferPool baseclass is doing busy wait in acquire_buffer() for some reason. That needs to be investigated though, discarding and re-alloc every GstBuffer is not ideal already.

Edited by Seungha Yang

Merge request reports