-
Notifications
You must be signed in to change notification settings - Fork 107
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
optimize the separated frame mechanisms #12
Comments
这个 issue 现在是什么进度呢? |
还没进度,现在的情况是说每次任务只渲染一个 widget,但其实可能它不怎么耗时。希望做到说,如果这个任务不怎么耗时,那么是不是可以再执行一个任务。 但这个依赖于,要得到每一个任务的执行时间,现在的每一个任务是 setState,这玩意儿在当前帧只是一个标记操作,下一帧执行耗时,所以没法拿到这一帧的时间。 我能想到的是,能不能先去把这个任务机制改下,不做 setState, 看下有没有办法直接在这一帧渲染 widget。一来可以统计时间(但这个时间只是 framework 的,可能没那么准),二来可以提升整个页面的渲染速度(理论上页面完成渲染的时间会快两倍)。 |
Not yet. At this point we're only rendering one widget per task, but it's probably not that time-consuming. Hopefully, if this task is not too time-consuming, can you execute another task? But this depends on, you know, getting the execution time of each task, now each task is The only thing I can think of is if I can change the task mechanism without |
I seem to come up with a solution here: flutter/flutter#101227 (comment) |
Will there be a pull request any time soon? to test the solution. |
@inc16sec It is in https://github.com/fzyzcjy/flutter_smooth, but still WIP! |
The text was updated successfully, but these errors were encountered: