-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate the advantage of enabling SkSL warmup #99
Comments
as the result I shown, sksl warmup can reduce time in GrGLProgramBuilder::finalize(), then reduce DrawSnapshot time about 200ms, but this will result in more time before OnMakecurrent in the same thread, that's why you can't see any improvement, I will check why. |
@xuelian-bai Thank you for sharing. I was just to correct what you mentioned about the "launch time" because the sksl warmup typically doesn't reduce the startup time but rather increases it. From the medium link that I provided in the above comment, you will see
|
Currently the following message is logged out to the console when an app is run with the
|
did you set the path FlutterProjectArgs.persistent_cache_path? |
@xuelian-bai No. I know why the error is displayed. The above comment just states the current status. |
This will not be necessary if flutter-tizen/embedder#15 is implemented. Let's focus on flutter-tizen/embedder#15. |
What is shader compilation jank?
https://flutter.dev/docs/perf/rendering/shader
How to enable SkSL warm-up on Tizen?
Set the
FlutterProjectArgs.persistent_cache_path
value to either a system temp directory or the app cache directory before starting the engine. Alternatively, the cache directory can be set by implementingfml::paths::GetCachesDirectory()
infml/platform/linux/paths_linux.cc
(not tested). Shaders will be stored to this directory on the first run of an app, and the cached shaders will be used on subsequent runs.You can optionally bundle the shaders with a tpk (as a json file in
res/flutter_assets
) to accelerate the first run of the app on other devices: https://flutter.dev/docs/perf/rendering/shader#how-to-use-sksl-warmupPros and cons
Read more
The text was updated successfully, but these errors were encountered: