Region Not found - Perfomance Issue? (SOLVED)

tetsu0sh0

  • Posts: 49
I have an actor that is looking to be selected upon a drawn region.
So the actor is constantly looking for the last drawn region, which i then delete after a unit is selected.
This action is for an RTS; drag a selection box around units to select them.
The Console is being flooded with "region not found" (or similar) messages and I'm wondering if there could be a performance drop if there are a lot of actors looking for a region that doesn't exist.

I ask this because I'm wondering if should change my "drag region to select units" behavior before i get too far into this game.
Thanks 

« Last Edit: August 20, 2012, 03:43:54 pm by tetsu0sh0 »

rob1221

  • *
  • Posts: 9456
I'm pretty sure that will decrease performance.

tetsu0sh0

  • Posts: 49
Hmm... Alright. I think i know how to fix:

Create a game attribute called "region drawn"
And i can tie that into my selection logic.
As soon as the region is deleted i can reset that boolean.
Now how do i set this thread as solved?

rob1221

  • *
  • Posts: 9456
You should be able to edit the title.