You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Impeller] The Vulkan command pool recycler never releases the pools it caches #194787
P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team
CommandPoolRecyclerVK keeps every command pool that comes back to it and never destroys one while the context is alive. The raster thread moves to a fresh pool every frame and after every picture snapshot, and the previous pool comes back once its work has finished on the GPU. So the number of pools never goes down: after a frame with many snapshots, or a few frames with more work in flight, all of those pools stay cached for the lifetime of the context, each with its recycled command buffers and the driver memory behind them.
Capping the list has a trap. Evicting an entry with vector::erase move-assigns RecycledData entries over each other, and move assignment runs in declaration order, so the overwritten entry's pool is destroyed before its command buffers are freed. #189580 capped it that way; with that eviction, a program that grows the cache (128 Picture.toImage calls in flutter_tester against SwiftShader) segfaults at the first eviction, every run. The canvas_test crash under host_release on that PR is not tied to it: locally canvas_test never caches more than 4 pools, so the eviction never runs.
P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team
Activity
[Impeller] Cap the Vulkan command pool recycler cache (flutter#194793)