Hey so this pretty much does what is said on the tin. When you are in found mode, as well as saying [FIND] in the fpsInfo, it says (Found: x) and x obviously is the amount of particles which were found. I was just wondering, since this is such a simple thing to implement, is there anywhere that it already is in the game, or is there any other reason it is not already there? I spent 5 minutes writing it, and it makes no difference to the speed (although how would it really..)?
I'm going for the night. I'm not rude if I don't respond, just sleeping.
Simulation::elementCount seems to keep count of the number of particles of each element, so it's definitely already there. Dunno why it's not used. Editing GameView.cpp so it shows particle count seems to be a pain at a first glance though. It gets the number of all particles and other stuff shown in the HUD from some class Sample and never actually references the Simulation instance itself.