Description
Hey, so I had some fun porting text rendering to Forma using parley:
However, when using the GPU, the memory usage is quite high (e.g. for this demo, in release mode, ~400MB on my Mac). When I then start resizing the window, it quickly grows to ~600MB and beyond.
This doesn't happen when using a CPU runner. If I render text without emoji, then I also don't see this behaviour with the GPU runner either.
The way emoji are rendered is by rendering the glyph to a small image (16x16 right now) and then rendering this image with a 16x16 Path.
So only if I'm rendering emoji images on the GPU do I see huge memory consumption (and increasing memory consumption).
Do I need to perform some sort of cleanup when rendering images using Forma with the GPU renderer?