进一步优化2
This commit is contained in:
@@ -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)',
|
||||
|
||||
Reference in New Issue
Block a user