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:
Hermet Park 2024-01-18 21:38:57 +09:00
parent fc7ba88585
commit 96f5f82050

View file

@ -474,7 +474,6 @@ bool SwRenderer::postRender()
}
tasks.clear();
clearCompositors();
return true;
}