mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Its a bit ambiguous whether or not resetting a cmd pool returns the cmd buffers resources back to the pool in a way that can be reused on subsequent frames. Since reseting the pool resets the cmd buffers to their initial state, they are safe to reuse once reset. Additionally, through profiling I can observe that there is less allocation in cmd buffer creation when the buffers themselves are recycled, at least on the Mali drivers. ### Before (Animated Advanced Blend Macrobenchmark)  ### After 