Hi guys,
I'm working on a shoot'em up with a match 3 feature and I created a detecting function for the match 3 feature. I'm using hexagonal cell so when i call this function my starting cell will create 6 objects to detect if there are others cells close to it. If it is, those cells will create another 6 objects and this process will continue until there are no more cell to collide with. This a huge process and I think it can be better but I don't know how. I'm using the same kind of function to detect isolated cells : all my wall cells create collider, if those objects collide with a cells they will spawn another 6 objects etc...
Those functions create a huge FPS drop and i don't know how to fiw it. Maybe in creating less objects but i don't know how to detect where i don't need to create objects.
Thank you in advance.
My capx.