setCheckerboardRasterCacheImages method Null safety

  1. @FfiNative<Void Function(Pointer<Void>, Bool)>(Pointer<Void>, Bool)>('SceneBuilder::setCheckerboardRasterCacheImages', isLeaf: true)
void setCheckerboardRasterCacheImages(
  1. bool checkerboard
)
FfiNative<Void Function(Pointer<Void>, Bool)>(Pointer<Void>, Bool)>('SceneBuilder::setCheckerboardRasterCacheImages', isLeaf: true)">@FfiNative<Void Function(Pointer<Void>, Bool)>(Pointer<Void>, Bool)>('SceneBuilder::setCheckerboardRasterCacheImages', isLeaf: true)

Sets whether the raster cache should checkerboard cached entries. This is only useful for debugging purposes.

The compositor can sometimes decide to cache certain portions of the widget hierarchy. Such portions typically don't change often from frame to frame and are expensive to render. This can speed up overall rendering. However, there is certain upfront cost to constructing these cache entries. And, if the cache entries are not used very often, this cost may not be worth the speedup in rendering of subsequent frames. If the developer wants to be certain that populating the raster cache is not causing stutters, this option can be set. Depending on the observations made, hints can be provided to the compositor that aid it in making better decisions about caching.

Currently this interface is difficult to use by end-developers. If you're interested in using this feature, please contact flutter-dev.

Implementation

@FfiNative<Void Function(Pointer<Void>, Bool)>('SceneBuilder::setCheckerboardRasterCacheImages', isLeaf: true)
external void setCheckerboardRasterCacheImages(bool checkerboard);