Merge lp://qastaging/~gordallott/unity/chunked-lazy-load into lp://qastaging/unity
Proposed by
Gord Allott
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Mikkel Kamstrup Erlandsen | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 1586 | ||||
Proposed branch: | lp://qastaging/~gordallott/unity/chunked-lazy-load | ||||
Merge into: | lp://qastaging/unity | ||||
Diff against target: |
107 lines (+30/-8) 2 files modified
plugins/unityshell/src/ResultViewGrid.cpp (+28/-7) plugins/unityshell/src/ResultViewGrid.h (+2/-1) |
||||
To merge this branch: | bzr merge lp://qastaging/~gordallott/unity/chunked-lazy-load | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Approve | ||
Review via email:
|
Description of the change
measures the loading of icons in the dash, if the timeframe exceeds 8ms (half a frame) we wait until the next frame to load more icons
To post a comment you must log in.
48 + if (timer. ElapsedSeconds( ) > 0.08) l_load = true; add(1000/ 60 - 8, (GSourceFunc) (&ResultViewGri d::OnLazyLoad) , this);
49 + {
50 + queue_additiona
51 + break;
...
64 + g_timeout_
On line 48 you have 80ms and on line 64 using 1 frame @ 60 fps - 8ms. Maybe there is some logic I am missing, and you need a comment somewhere to explain it; or you have an off-by- an-order- of-magnitude- error there between 80ms and 8ms ;-)
(maybe comments needed about the timings anyway for dummies like me :-))