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
2a105de9e8
commit
ca3c1fc1b9
1 changed files with 0 additions and 1 deletions
|
@ -474,7 +474,6 @@ bool SwRenderer::postRender()
|
|||
}
|
||||
tasks.clear();
|
||||
|
||||
clearCompositors();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue