Repository navigation
Defer scroll-motion notifications/reads/style, yield decorative chrome animations, and split PagedReader - #2363
Merged
Conversation
…, and split PagedReader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Measured scroll-profile improvement (
tools/qt_scroll_profile.py, Pixel 8a412×915, live bus)fling+wheel+arrival):1.128s -> 0.747s(1.51x,-381 ms)flush_qt_events:288 ms -> 76 ms(3.79x)paintEvent:206 ms -> 88 ms(2.34x)_scroll_frame(190 ms) /prepare_viewport(174 ms): vanished from top 35 (<20 ms)check_notifications/ WSsend_bytes:78 ms / 12 frames -> 0mid-scrollname_wave.py:149(paint):118 calls / 19 ms -> 0mid-scrollpageupframe median/p95:0.992 / 11.745 ms -> 0.663 / 4.247 ms(2.77xp95), latency p95328.3 -> 215.3 ms(-113 ms)arrivalframe median/p95:0.502 / 1.008 ms -> 0.377 / 0.659 ms(1.53xp95), latency median/p951.103 / 2.033 ms -> 0.904 / 1.647 msChanges
Shared
PagingWindow.scroll_in_motiondeferral (client/history_pager.py,client/history_notifications.py,client/history.py,qt/history.py):PagingWindow.scroll_in_motion(defaultFalse, overridden onQtHistoryWindowasself.actively_scrolling or self._settle_timer.isActive()) is the single owner for scroll-motion deferral.SourceNotifications.notifications_deferredandHistoryNotifications.check_notificationsdefer WS notification re-subscriptions during scroll; deleted the duplicate Qt-onlyQtHistoryNotifications.check_notificationsoverride.ReadMarkedHistory.prepare_viewport,mark_visible_after_paint, andread_visibledefermark_visibleRPCs andfollow_message_style()ObjectStatelookups while scrolling (whileretain_paintedkeeps accumulating painted fragments so settle flushes reads in one RPC).QtHistoryWindow._on_scroller_stateflushes immediately via_settle()/request_preparation()when motion stops.QtAnimationClockdecorative chrome scroll-yielding (qt/widget_animation.py,qt/window.py,qt/activity.py,qt/name_wave.py):QtAnimationClock(AnimationClock)tracking active scrolling windows (set_scrolling(owner, active)).QtClockedWave,QtTabMarquee,ActivitySweep) yieldanimation_visiblewhile scrolling so top-bar/sidebar/bottom-bar repaints stop expanding Android's backing-store dirty bounding box to a full-screen GPU upload mid-fling, while finite transitions (TabTransition, arrivals, fades) keep running.Eliminate
IDEN-2duplicateReaderWindowin MRO (history_jump.py,reader_actions.py,transcript_publication.py,qt/history.py,widgets/history_anchor.py):toad.history_jump.ReaderWindow->PagedReadersoQtHistoryWindow.__mro__andHistoryWindow.__mro__carry oneReaderWindow(toad.client.reader_position.ReaderWindow) and onePagedReader.Test cleanup:
test_mobile_chrome_polish_and_suspend.py).QtAnimationClockand replaced the stale_Rendererfake intest_qt_channel_activity_sidebar.pywithQtLineRenderer+root.Verification
pytest(6 affected test files):117 passed in 1.26stools/qt_inherit_ratchet.py:0 / 0 / 0 / 0 / 0ReaderWindow+PagedReaderon both frontendsREL_IMPORTS=0