Count found particles?

  • zaccybot2
    4th Jan 2017 Member 0 Permalink

    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.

    Edited once by zaccybot2. Last: 4th Jan 2017
  • LBPHacker
    5th Jan 2017 Developer 0 Permalink

    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.

  • jacob2
    5th Jan 2017 Member 0 Permalink
    @LBPHacker (View Post)
    I hate the Sample class ):