From d7914bb2fb567c9fa90de58d0caef2260ed17065 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 18 Oct 2026 00:31:53 -0500 Subject: [PATCH] reduce call count --- .../components/TankSandbox/components/Lighting.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx index d2cfd9804..25b7b740a 100644 --- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx +++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Lighting.tsx @@ -1,4 +1,3 @@ -import { blueDark, orangeDark } from "@radix-ui/colors"; import { ContactShadows } from "@react-three/drei"; import { invalidate, useFrame } from "@react-three/fiber"; import { clamp, times } from "lodash-es"; @@ -98,11 +97,7 @@ export function Lighting({ hasPbr }: Props) { )} - + {times(LIGHTS_COUNT, (index) => { const x = index / (LIGHTS_COUNT - 1); @@ -125,7 +120,7 @@ export function Lighting({ hasPbr }: Props) { position={position} intensity={intensity} penumbra={1} - castShadow={highGraphics} + castShadow={highGraphics && index === 0} decay={1} color="#ffffff" angle={0}