test: add performance optimization verification test#21339
test: add performance optimization verification test#21339Srajan-Sanjay-Saxena wants to merge 2 commits intoapache:masterfrom
Conversation
- Tests duplicate refresh prevention (8 → 1 animation starts) - Tests adaptive sleep threshold functionality - Tests hover refresh optimization - Provides automated verification of zrender performance improvements
|
Thanks for your contribution! This PR depends on ZRender changes. Please update the ZRender dependency to the latest nightly version including this change, which takes place everyday at 8:00 UTC (16:00 Beijing Time). |
|
i have upgraded the package of zrender to nightly in commit 5af7efd |
| zr._needsRefresh = false; | ||
|
|
||
| // Call refresh multiple times rapidly | ||
| zr.refresh(); |
There was a problem hiding this comment.
It doesn't seem to make sense calling zr.refresh(); multiple times. First of all, zrender should be a black-box when using ECharts and developers are not expected to call this function manually.
Brief Information
This pull request is in the type of:
What does this PR do?
Fixes canvas laggy rendering for geo maps with many labels by optimizing ZRender refresh cycles to prevent unnecessary re-renders.
Fixed issues
Details
Before: What was the problem?
Geo maps with many data points and labels caused performance issues due to excessive refresh cycles in ZRender:
After: How does it behave after the fixing?
Performance optimizations in ZRender prevent unnecessary re-renders:
test/test-optimizations.htmlDocument Info
One of the following should be checked.
Misc
Security Checking
ZRender Changes
Related test cases or examples to use the new APIs
test/test-optimizations.html- Automated verification of all performance optimizationsMerging options
Other information
Performance improvements verified with automated tests showing significant reduction in unnecessary animation restarts and better resource management for complex visualizations.