Repository navigation
Cut QtNameWaveDelegate.paint frame work from 19.0 to 12.1 calls/frame via PreparedTextLayout inks - #2353
Merged
Conversation
… via PreparedTextLayout inks
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.
Cuts
QtNameWaveDelegate.paintPython calls/frame inframe_workfrom19.0(and25.3on8d15381ea) down to12.1(-36%below baseline,-52%below8d15381ea), with16/20accent looks.Changes
src/toad/qt/window.py: Declareanimation: object | None = NoneonSidebarItem(matchingQtClockedWave) soQtNameWaveDelegate.paintreadsitem.animation is not Nonedirectly without a per-row Pythonwave_running()call.src/toad/qt/name_wave.py: Delete the redundant_banded_preparedsecond cache (IDEN-5), overridetext_inks()for coldsuper().paint(), and paint already-prepared waving sidebar rows directly throughPreparedTextLayout.paint(..., inks)+CE_ItemViewItem(zeroQTextLayoutcloning/re-layout and zerosuper().paint()/enum.pyoverhead per wave-span cache miss).tests/textual/test_name_wave_repaint.py: UpdateWavingItemand cache assertion foranimation/_row_images/bold.tools/frame_work_baseline.json: Ratchetname_wave.QtNameWaveDelegate.paintdown19.0 -> 12.1.Verification
pytest tests/textual/test_name_wave_repaint.py: 3 passed in 0.19s.tools/android/check.sh(bundle_check.py,shipped_run.py,frame_work):12.1calls/frame (5.28 entries x 2.3),0 pxsideways drag,16/20accent looks,emoji-default: 0.REL_IMPORTS=0.