进一步优化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

@@ -150,29 +150,29 @@ body {
.bg-glow { .bg-glow {
position: fixed; position: fixed;
border-radius: 50%; border-radius: 50%;
filter: blur(120px); filter: blur(60px); /* Reduced from 120px to save GPU fill rate */
opacity: 0.4; opacity: 0.3;
z-index: 0; z-index: 0;
pointer-events: none; pointer-events: none;
animation: glowFloat 20s ease-in-out infinite; animation: glowFloat 30s ease-in-out infinite; /* Slower = lighter */
will-change: transform, opacity; will-change: transform;
} }
.bg-glow-1 { .bg-glow-1 {
width: 600px; width: 400px;
height: 600px; height: 400px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%); background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
top: -200px; top: -100px;
left: -100px; left: -50px;
animation-delay: 0s; animation-delay: 0s;
} }
.bg-glow-2 { .bg-glow-2 {
width: 500px; width: 300px;
height: 500px; height: 300px;
background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%); background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
bottom: -150px; bottom: -100px;
right: -100px; right: -50px;
animation-delay: -7s; animation-delay: -7s;
} }
@@ -211,9 +211,9 @@ body {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 28px; padding: 0 28px;
background: rgba(10, 14, 26, 0.85); background: rgba(10, 14, 26, 0.95);
backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(8px); /* Reduced from 20px */
-webkit-backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
} }
@@ -445,8 +445,8 @@ input:checked+.slider:before {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
backdrop-filter: blur(12px); backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(4px);
transition: all 0.3s ease; transition: all 0.3s ease;
overflow: hidden; overflow: hidden;
} }
@@ -613,8 +613,8 @@ input:checked+.slider:before {
background: var(--bg-card); background: var(--bg-card);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
backdrop-filter: blur(12px); backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(4px);
overflow: hidden; overflow: hidden;
transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
} }

View File

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