Repository navigation
Closed
flutter-team-archive/engine
#25644Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)c: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.waiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
Now that https://bugs.chromium.org/p/skia/issues/detail?id=11392 has landed and been rolled in, preparation of Metal pipelines from harvested SKPs can be implemented. This is a tracking bug to make sure lifecycle and threading implications of the attempt at engine launch are reasoned about before enabling this on all renderer launch attempts.
Reacted by Daniil Lipatkin, PiN73, Ihar Petushkou, Andrew Coutts, Davide Bolzoni, Tim, Luke Pighetti, Alex Maslov, Eugene Pisotsky, Matthew Tory and 152 more
Reacted by Martin Kamleithner, David Heidrich, Tim, Dan Reynolds, Alex Maslov, Andrew Coutts, Thibault Zanini, Lucas Viana, Dimitri Dessus, Elia Bieri and 73 more
Reacted by Martin Kamleithner, David Heidrich, Davide Bolzoni, Tim, Dan Reynolds, Andrew Coutts, Eugene Pisotsky, Thibault Zanini, Dimitri Dessus, Elia Bieri and 53 more
Reacted by Martin Kamleithner, Nikolay Burykin, 1korostelev, Tim, Dan Reynolds, Andrew Coutts, Liber Da Silva, Thibault Zanini, Dimitri Dessus, Elia Bieri and 53 more
Reacted by Martin Kamleithner, Gianluca Bettega, vukhacbiet, Tim, Alex Maslov, Andrew Coutts, Dimitri Dessus, Elia Bieri, Davide Dessì, Mike Borodin and 40 more
Metadata
Metadata
Assignees
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)c: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.waiting for PR to land (fixed)A fix is in flightA fix is in flight
Activity
chinmaygarde commentedon Apr 6, 2021
The precompilation of harvested SKSL's has been wired up. Working on testing and benchmarking this in the host harness.
Wire up Metal shader precompilation from offline training runs.
Wire up Metal shader precompilation from offline training runs.
acoutts commentedon Apr 20, 2021
Is this available in master to try now?
CavalcanteLeo commentedon Apr 20, 2021
will this fix iOS shader jank issue? (using metal)
acoutts commentedon Apr 20, 2021
See the guide here on how to utilize it: https://flutter.dev/docs/perf/rendering/shader#how-to-use-sksl-warmup
This should let you significantly reduce it.
zaidkazi commentedon Apr 20, 2021
I thought that tutorial doeisnt work on metal @acoutts
69 remaining items
zanderso commentedon Jun 2, 2021
@SM2DevLLC Bundling multiple SkSLs is not yet implemented. Please give a thumbs-up to #73098 to indicate your interest in that feature.
jnovak-SM2Dev commentedon Jun 2, 2021
@zanderso Oh ok. So I can't really do iPad and iPhone since they would need to be in the same file, so i'd need to pick one for now to build for release?
b3nni97 commentedon Jun 4, 2021
I have the problem that I publish my app via Xcode and how can I attach the sksl file there? If I go via Xcode -> Product -> Archive then I can't set anything else there.
alectogeek commentedon Jun 5, 2021
@b3nni97 you don't have to attach the sksl file manually. It is enough to use
flutter build ios --bundle-sksl-path your-file-name.sksl.jsonto build an app and after that, you can archive and publish via xCodearmandojimenez commentedon Jun 5, 2021
Tried it on my app, it really reduce jank (Not all, there still jank, I know is jank because it dissapear after third open)... but, now my app takes more than 10 secs on the splash screen, and sometime when I restart the phone, it can take more thank 30 sec. Only happens on first app install, and when I restart the phone. On a iPhone 11 Pro Max
armandojimenez commentedon Jun 6, 2021
Question, when I do the warm process, Do i only need to trigger the animation with jank only one time? or do I need to run it mutiple times until it runs smooth? does it affect at all the size of the .json and app start time?
m-j-g commentedon Jun 16, 2021
I'm having a hard time tracking where this is committed. Is there a version number that has this implemented? Trying to stay on top of this so that I'm aware when it makes it to beta/stable
matehat commentedon Jun 18, 2021
Same here, is there a way to know when we can get out of the dev channel while keeping Metal shader caching?
zanderso commentedon Jun 21, 2021
@m-j-g @matehat This will be on beta channel in version 2.3, which I believe should be out soon.
scorpion-orion commentedon Jul 13, 2021
On a Mac, you need to use Shift + m. Yeah who would have thought M means Shift + m? Probably only me. Kind of silly when the command line literally needs the capital M instead of just m. Flutter team as a whole is really awesome! But sometimes I find the new guy coming in and can't code the command line properly. There's nothing in the command line output that says press Shift + m.
Also one more thing, we have flutter build ios --release --bundle-sksl-path but why didn't they also make flutter run --release --bundle-sksl-path too, just to make our lives less miserable so that we won't need to archive into ipa, sign with adhoc and then manually deploy to the device. To make it more head spinning, flutter run --release --no-build actually ignores the --no-build flag and rebuilds anyway. I mean, whoever writes this command line tool seriously needs to sit down and reflect what's going on since 2019 until now 2021.
joshbenaron commentedon Jul 16, 2021
Is it on stable yet?
github-actions commentedon Jul 30, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.