feat: use RIC to avoid frequent calls syncRTree - #1960
Merged
Conversation
Member
|
这个的效果如何? |
Member
这个是之前提到的临时方案,在滚动过程中不优先每帧更新包围盒缓存,对 S2 的滚动帧率有 5 ~ 10 FPS 的提升,每帧耗时能降低 ~20% 左右 |
wang1212
added a commit
that referenced
this pull request
Jun 25, 2025
* perf: optimize element event distribution and attribute update process * perf: 增加enableRICSyncRTree --------- Co-authored-by: wang1212 <mrwang1212@126.com>
wang1212
added a commit
that referenced
this pull request
Jun 26, 2025
#1944) * fix(plugin-box2d): remove trailing slash from BOX2D_UMD_DIR * perf: optimize element event distribution and attribute update process * feat: use RIC to avoid frequent calls syncRTree (#1960) * perf: optimize element event distribution and attribute update process * perf: 增加enableRICSyncRTree --------- Co-authored-by: wang1212 <mrwang1212@126.com> * chore: fix lint error * refactor: enhance performance optimization with experimental features - Move performance-related configurations from runtime to canvas config - Introduce experimental feature flags in CanvasConfig for better control - Optimize event propagation and attribute updates - Add RIC (RequestIdleCallback) for syncRTree operations - Improve type safety and code organization --------- Co-authored-by: huiyu.zjt <Alexzjt@users.noreply.github.com>
wang1212
added a commit
that referenced
this pull request
Jun 27, 2025
* fix: 🐛 Fix invalid URL links (#1951) * fix: terminate immediately when the line width is too small to display any characters (#1956) * docs: update documentation and examples * fix(svg-renderer): add x and y attributes to foreignObject in SVGRenderer (#1961) Add support for x and y attributes in foreignObject elements to ensure proper positioning in SVG rendering. * docs: update documentation formatting and update dependencies * perf: optimize element event distribution and attribute update process (#1944) * fix(plugin-box2d): remove trailing slash from BOX2D_UMD_DIR * perf: optimize element event distribution and attribute update process * feat: use RIC to avoid frequent calls syncRTree (#1960) * perf: optimize element event distribution and attribute update process * perf: 增加enableRICSyncRTree --------- Co-authored-by: wang1212 <mrwang1212@126.com> * chore: fix lint error * refactor: enhance performance optimization with experimental features - Move performance-related configurations from runtime to canvas config - Introduce experimental feature flags in CanvasConfig for better control - Optimize event propagation and attribute updates - Add RIC (RequestIdleCallback) for syncRTree operations - Improve type safety and code organization --------- Co-authored-by: huiyu.zjt <Alexzjt@users.noreply.github.com> * chore: add changeset * chore(release): bump version (#1958) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: iaosee <iaosee@outlook.com> Co-authored-by: huiyu.zjt <Alexzjt@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge