Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Destroy particle on collision
#10
(03-05-2018, 07:28 AM)Jaydena Wrote: Hey Josemendez,

This script works well but it gets very inefficient after around 1000 particles have been emitted, dropping down to 4fps. 

Is there anyway to achieve this effect in a more efficient manner?

Such as set the particle life to zero based on it's z, x or y transform value rather than a collision?

Cheers!

You could deactivate collisions and just iterate over all particles positions instead, yes.

Out of curiosity, I've tested this script and it only causes a 10% performance impact or so for 2500 particles. What platform are you targeting? and have you profiled to make sure this is the culprit?
Reply


Messages In This Thread
Destroy particle on collision - by Kalidor - 29-09-2017, 10:50 AM
RE: Destroy particle on collision - by josemendez - 29-09-2017, 12:01 PM
RE: Destroy particle on collision - by Kalidor - 29-09-2017, 12:30 PM
RE: Destroy particle on collision - by josemendez - 29-09-2017, 02:09 PM
RE: Destroy particle on collision - by KalidorH8r - 26-10-2018, 04:28 PM
RE: Destroy particle on collision - by Kalidor - 29-09-2017, 02:45 PM
RE: Destroy particle on collision - by josemendez - 29-09-2017, 03:03 PM
RE: Destroy particle on collision - by Kalidor - 29-09-2017, 03:54 PM
RE: Destroy particle on collision - by Kalidor - 02-10-2017, 01:40 PM
RE: Destroy particle on collision - by Jaydena - 03-05-2018, 07:28 AM
RE: Destroy particle on collision - by josemendez - 03-05-2018, 08:32 AM
RE: Destroy particle on collision - by Jaydena - 04-05-2018, 01:44 AM
RE: Destroy particle on collision - by josemendez - 18-10-2021, 08:22 AM