Limit particles to save on resources

This commit is contained in:
2024-08-12 12:48:03 +05:30
parent 1c5606571f
commit bf7181ec2b

View File

@@ -17,7 +17,7 @@ const Background = () => {
value: "#2c2c2c", value: "#2c2c2c",
}, },
}, },
fpsLimit: 120, fpsLimit: 60,
interactivity: { interactivity: {
events: { events: {
onClick: { onClick: {
@@ -33,6 +33,10 @@ const Background = () => {
modes: { modes: {
push: { push: {
quantity: 4, quantity: 4,
limit: 20,
},
remove: {
quantity: 4,
}, },
repulse: { repulse: {
distance: 200, distance: 200,