Open omarokasha1 opened 2 years ago
@KareemAhmed22 any Updates ?
profiling performance
with an app built in profile mode
not in debug mode
.Run > Flutter Run main.dart in Profile Mode
menu item.Only
when Needed like Opacity
and Color Fillters
.saveLayer()
behind the scenes, which can be an expensive operation.savelayer
expensive?saveLayer()
allocates an offscreen buffer. Drawing content into the offscreen buffer might trigger render target switches that are particularly slow in older GPUs.Opacity
widget only when necessary and we can use FadeInImage Widget or use AnimatedOpacity
Widget insted of Opacity.saveLayer()
(unless explicitly requested with Clip.antiAliasWithSaveLayer
) so these operations aren’t as expensive as Opacity, but clipping is still costly
.flutter build apk
or
flutter build ios
flutter build appbundle
NOTE:
download sizes may vary depending on their hardware.flutter build apk --analyze-size
flutter build appbundle --analyze-size
flutter build ios --analyze-size
flutter build linux --analyze-size
flutter build macos --analyze-size
flutter build windows --analyze-size
(known as the GPU)
to be rendered on the device.
Kareem, I need you to investigate this and give me Document it what you learn in here
https://docs.flutter.dev/perf