mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 14:41:50 +00:00
sw_engine: retain the compositor cache memory
The compositor memory is likely to be reused in the next frame. To enhance performance, it is advisable to retain this memory by default. We may consider introducing a cache policy interface in the Initializer. This would allow users to manage the Canvas memory more effectively. Anyhow, this improves the Lottie example performance by 10%
This commit is contained in:
parent
c8e0c48636
commit
e8a319268a
1 changed files with 0 additions and 1 deletions
|
@ -475,7 +475,6 @@ bool SwRenderer::postRender()
|
|||
}
|
||||
tasks.clear();
|
||||
|
||||
clearCompositors();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue