Project: Paper2D

Hi ,

Using vector art can be quite nice for sharp images at any resolution, but there are certainly some potential downsides to rasterizing it into a cache. For example, imagine that you have multiple instances of same object, each independently zooming in and out (e.g., a bunch of buttons that can all play their own bounce animation when clicked, or spawning characters or whatever). If you place every unique scale (and possibly rotation) instance in cache, you can quickly run out of memory and crash if cache can grow unbounded, or thrash cache + force a rendering flush if cache has a maximum size.

Slate actually handles something like with a runtime atlas for font characters, rasterizing characters as needed at each scale size used in a frame. works pretty well in practice, though quickly zooming in and out in a Blueprint can pollute cache temporarily.

I agree that it would be quite useful, even if it just rasterizes to maximum size on load, reducing your download size. I’ll add it to roadmap as a wishlist item.

Cheers,