From bf7181ec2be0357e54b9fddb2e845b92e50eb348 Mon Sep 17 00:00:00 2001 From: Arkaprabha Chakraborty Date: Mon, 12 Aug 2024 12:48:03 +0530 Subject: [PATCH] Limit particles to save on resources --- frontend/src/components/Background.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Background.js b/frontend/src/components/Background.js index 4d839a9..d60ac4b 100644 --- a/frontend/src/components/Background.js +++ b/frontend/src/components/Background.js @@ -17,7 +17,7 @@ const Background = () => { value: "#2c2c2c", }, }, - fpsLimit: 120, + fpsLimit: 60, interactivity: { events: { onClick: { @@ -33,6 +33,10 @@ const Background = () => { modes: { push: { quantity: 4, + limit: 20, + }, + remove: { + quantity: 4, }, repulse: { distance: 200,