From c49493bb44359ea2b28a7e98b46cb3c90d46b3b8 Mon Sep 17 00:00:00 2001 From: denshooter Date: Mon, 2 Mar 2026 02:21:44 +0100 Subject: [PATCH] perf: disable Sentry, remove grain overlay and shader gradient files - Disable Sentry in all 3 configs (client/server/edge) - replayIntegration was recording every DOM mutation causing overhead in Chrome - Remove grain-overlay div and its CSS (SVG feTurbulence + mix-blend-mode:overlay forces software compositing in Chrome on every frame) - Remove mix-blend-multiply from BackgroundBlobs (prevents Chrome GPU compositing) - Delete unused Grain.tsx, ShaderGradientBackground.tsx and its client wrapper Co-Authored-By: Claude Sonnet 4.6 --- ._.env | Bin 0 -> 4096 bytes .claude/settings.local.json | 12 ++ app/components/Grain.tsx | 30 ----- app/components/ShaderGradientBackground.tsx | 112 ------------------ .../ShaderGradientBackgroundClient.tsx | 16 --- app/globals.css | 13 -- app/layout.tsx | 1 - components/BackgroundBlobs.tsx | 8 +- instrumentation-client.ts | 22 +--- sentry.edge.config.ts | 8 +- sentry.server.config.ts | 8 +- 11 files changed, 19 insertions(+), 211 deletions(-) create mode 100644 ._.env create mode 100644 .claude/settings.local.json delete mode 100644 app/components/Grain.tsx delete mode 100644 app/components/ShaderGradientBackground.tsx delete mode 100644 app/components/ShaderGradientBackgroundClient.tsx diff --git a/._.env b/._.env new file mode 100644 index 0000000000000000000000000000000000000000..ffa6093bb85cfe9e412fb5aae03c6c17e31f3c58 GIT binary patch literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103vf+zv$ zV3+~K+-O=D5#plB`MG+D1qC^&dId%KWvO|IdC92^j7$s;O* literal 0 HcmV?d00001 diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..5b9970f --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,12 @@ +{ + "permissions": { + "allow": [ + "Bash(git remote:*)", + "Bash(git pull:*)", + "Bash(git checkout:*)", + "Bash(git merge:*)", + "Bash(git push:*)", + "Bash(git add:*)" + ] + } +} diff --git a/app/components/Grain.tsx b/app/components/Grain.tsx deleted file mode 100644 index b5dacd0..0000000 --- a/app/components/Grain.tsx +++ /dev/null @@ -1,30 +0,0 @@ -"use client"; - -import { motion } from "framer-motion"; - -const Grain = () => { - return ( -
-
- -
- ); -}; - -export default Grain; diff --git a/app/components/ShaderGradientBackground.tsx b/app/components/ShaderGradientBackground.tsx deleted file mode 100644 index 8f7240c..0000000 --- a/app/components/ShaderGradientBackground.tsx +++ /dev/null @@ -1,112 +0,0 @@ -"use client"; - -import React from "react"; -import { ShaderGradientCanvas, ShaderGradient } from "@shadergradient/react"; - -const ShaderGradientBackground = () => { - return ( -
- - {/* Sphere 1 - Links oben */} - - - {/* Sphere 2 - Rechts mitte */} - - - {/* Sphere 3 - Unten links */} - - -
- ); -}; - -export default ShaderGradientBackground; diff --git a/app/components/ShaderGradientBackgroundClient.tsx b/app/components/ShaderGradientBackgroundClient.tsx deleted file mode 100644 index 7c16a5a..0000000 --- a/app/components/ShaderGradientBackgroundClient.tsx +++ /dev/null @@ -1,16 +0,0 @@ -"use client"; - -import React, { useEffect, useState } from "react"; -import ShaderGradientBackground from "./ShaderGradientBackground"; - -export default function ShaderGradientBackgroundClient() { - const [mounted, setMounted] = useState(false); - - useEffect(() => { - setMounted(true); - }, []); - - if (!mounted) return null; - - return ; -} diff --git a/app/globals.css b/app/globals.css index bacb671..10c0151 100644 --- a/app/globals.css +++ b/app/globals.css @@ -2,19 +2,6 @@ @tailwind components; @tailwind utilities; -/* Grain Effect */ -.grain-overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 9999; - pointer-events: none; - opacity: 0.04; - mix-blend-mode: overlay; - background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); -} :root { /* Warm Brown & Off-White Palette */ diff --git a/app/layout.tsx b/app/layout.tsx index f64d091..1c7a1a8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -34,7 +34,6 @@ export default async function RootLayout({ -