Skip to content

feat: use RIC to avoid frequent calls syncRTree - #1960

Merged
wang1212 merged 3 commits into
perf/eventfrom
perf/event_syncRTree
Jun 24, 2025
Merged

feat: use RIC to avoid frequent calls syncRTree#1960
wang1212 merged 3 commits into
perf/eventfrom
perf/event_syncRTree

Conversation

@Alexzjt

@Alexzjt Alexzjt commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / Document optimization
  • TypeScript definition update
  • Refactoring
  • Performance improvement
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@wang1212
wang1212 merged commit 7f8dccf into perf/event Jun 24, 2025
2 checks passed
@wang1212
wang1212 deleted the perf/event_syncRTree branch June 24, 2025 03:50
@hustcc

hustcc commented Jun 24, 2025

Copy link
Copy Markdown
Member

这个的效果如何?

@wang1212

Copy link
Copy Markdown
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants