This growth is bounded but is bad in some (not really rare) cases.
Estimates are up to 200GB for 4k screens.
Reproducible test case:
user resizing viewport with mouse, each frame being 1 pixel bigger.
going from half res->full res would have around 2000 heaps created, with up to 100mb per frame extra mem. only one of these is used at any given time
This growth is bounded but is bad in some (not really rare) cases. Estimates are up to 200GB for 4k screens.
Reproducible test case: user resizing viewport with mouse, each frame being 1 pixel bigger. going from half res->full res would have around 2000 heaps created, with up to 100mb per frame extra mem. only one of these is used at any given time