forked from androidx/androidx
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse cached MTLCommandQueue across multiple MetalRedrawer's (#1127)
## Proposed Changes `MTLCommandQueue` is not a transient object and internal pools of them can be starved. It leads to Metal being unable to allocate a new one when GC hasn't collected the previously created queues. Cache it for reuse purposes. ## Testing Test: N/A ## Issues Fixed Fixes: [COMPOSE-1022](https://youtrack.jetbrains.com/issue/COMPOSE-1022/)
- Loading branch information
1 parent
46232e6
commit de0d28d
Showing
1 changed file
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters