进一步优化2

This commit is contained in:
CN-JS-HuiBai
2026-04-07 00:32:02 +08:00
parent f169dd4267
commit 73401309f2
2 changed files with 25 additions and 22 deletions

View File

@@ -1034,6 +1034,9 @@
const period = 3 + ((routeHash + i) % 5);
const styleKey = `${finalCurve.toFixed(2)}_${period}`;
// Performance Optimization: Limit maximum animated effects to 25 to prevent iGPU saturation
const effectVisible = styleGroupedSeries.size < 25;
if (!styleGroupedSeries.has(styleKey)) {
styleGroupedSeries.set(styleKey, {
id: 'latency-group-' + styleKey,
@@ -1041,7 +1044,7 @@
coordinateSystem: 'geo',
zlevel: 2,
effect: {
show: true,
show: effectVisible,
period: period,
trailLength: 0.05, // Shorter trail = less GPU pixels to process
color: 'rgba(99, 102, 241, 0.6)',