-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
Consider adding a custom recording format #53501
Comments
@chinmaygarde : I couldn't find such an issue in our database so I created this one. Please feel free to edit it. |
For memory usage, it would be helpful if this could support:
|
@chinmaygarde Are we actively working on this? I don't think so. I'm tempted to downgrade this to a P5 if we're not. |
This doesn't feel like a P3, unless perhaps if we decide that this is a blocker for solving jank. FWIW on the web we implemented this in order to manage picture memory on Safari without weak refs: https://github.com/flutter/engine/blob/dcb57f003bd3f5f8fbb3c75cd94443e8096ade94/lib/web_ui/lib/src/engine/canvaskit/canvas.dart#L269 We don't use it anywhere except Safari though, and we don't get the benefits described here. |
This would solve a number of issues for us. I believe it's planned for the near term. Chinmay or @flar might know for sure |
It has been moving up the priority list. Some of the not so distant term issues it could solve:
From there it could be a launching pad for other issues like:
In addition to the list of benefits in the Description. |
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 |
While the mechanism has been added to the Flutter Engine, it is not presently the default mechanism to use for Picture recording. As we enable it as the default we discover new issues that need to be resolved and will disable it to fix those issues as needed. I'll link this issue to any PRs that enable or disable the DisplayList as the default and hopefully any issues that point out problems that cause us to disable it again and any PRs that fix such issues. Note that while we work through these issues, the mechanism can be enabled or disabled on a run by run basis from the command line using the following flags (a short message will be emitted to confirm that the mechanism is enabled or disabled): Mechanism added: flutter/engine#26928 First attempt to enable it by default Second attempt to enable it by default Third attempt to enable it by default Fourth attempt to enable it by default Fifth attempt to enable it by default Current status: Enabled |
This has landed and is now enabled by default with flutter/engine#28946. Work to clean up the previous approach is underway. Other follow on work is tracked under #85737, so I will go ahead and close this issue. |
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 |
The custom recording format could be based on https://skia.googlesource.com/skia/+/refs/heads/android/10-release/src/core/SkLiteDL.h . We can use it to replace the
SkPicture
format to allow us to have more control. It could bring usskp
orsksl
) to do shader warm-upskp
.The text was updated successfully, but these errors were encountered: