You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Images are uploaded to the GPU synchronously #3805
This trace: #3082 (comment)
...includes a 300ms frame which we suspect corresponds to the frame during which we upload images to the GPU.
To reproduce, open the gallery app and run the Weather demo.
I'd like us to use a solution that keeps the developer in control, i.e. not one that always replaces loading images with a checkboard or some such. We could solve this in various ways, maybe a function that says "pin this to the GPU" and returns a Future that resolves when it's ready (but then how do you handle eviction?); maybe the function that takes the image (drawImage and friends) would also optionally return a bool, and if the bool is false (meaning that the image won't be painted this frame in all likelihood) you'd be able to paint something cheaper that frame. We'd also need a way to retrigger a paint once an image was uploaded (maybe a Future again).
I spoke with @abarth just now. It will probably be a while before we tackle this. That could change with more examples, but for now expect this to be a few months away.
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 -v and a minimal reproduction of the issue.
Activity
sethladd commentedon May 23, 2016
Blocked #3478
eseidelGoogle commentedon Jun 17, 2016
I spoke with @abarth just now. It will probably be a while before we tackle this. That could change with more examples, but for now expect this to be a few months away.
eseidelGoogle commentedon Jul 19, 2016
I also mentioned this to @jason-simmons today in case he's interested in more meaty engine work.
eseidelGoogle commentedon Jul 26, 2016
I just spoke with @chinmaygarde and he's willing to tackle this asap.
sethladd commentedon Jul 26, 2016
Thanks @chinmaygarde !
sethladd commentedon Aug 3, 2016
I believe we landed this. There are some bugs, but I think we can close.
github-actions commentedon Sep 6, 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.