Reduce subtitle buffer stalls
Tim Falken authored 5 months ago
Keep bitmap subtitle caches from thrashing after only a few videos by removing the small default item caps and relying on byte limits instead. This reduces the cold reparse delays that could make later videos start with slightly late subtitle images.
Also smooth HLS prune cleanup by deleting old segment files in bounded batches and expose debug timing counters for subtitle parsing, frame rendering, and prune work so it is easier to see whether stalls come from cache misses or cleanup pressure.