Raster cache images may be much bigger than the visible/clipped area #25155
Labels
c: performance
Relates to speed or footprint issues (see "perf:" labels)
engine
flutter/engine repository. See also e: labels.
found in release: 1.20
Found to occur in 1.20
framework
flutter/packages/flutter repository. See also f: labels.
P2
Important issues not at the top of the work list
perf: memory
Performance issues related to memory
team-engine
Owned by Engine team
triaged-engine
Triaged by Engine team
The size of raster cache image is based only on drawing operations and may be unnecessarily big. This is particularly important for custom widgets with pinch-to-zoom functionality, where after zooming the painted area may be much bigger than the viewport. In my case it caused crashes (GPU memory issues?) on some devices. The only way to work around is to use willChange hint to disable caching for such widget (even though it would benefit from caching).
I've found no way to limit the size to the clipped area.
Also, if this causes random issues, it is really hard to find the cause without using checkerboardRasterCacheImages.
Example:
The text was updated successfully, but these errors were encountered: