I've found a critical problem in my map which created huge FPS decreases in my map: the snapshot images in the fog.
9000 of these eat like all FPS on my computer.
I'm already unloading the units in my dungeons to maintain an acceptable frame count, but the images are the next problem with it.
So, now I am searching for the best way to receive/save the information, if a player had vision of that specific unit or not.
If I can identify these information I can recreate these images by revealing these units after loading the area.
I wish I can do something different than scripting the vision myself and store my info in the dungeon units that way. :S
As far as it seems these images are Snapshot actors (CActorSnapshot), but that's how far I've explored that.
But I don't think I can get that info out of actors, can I?
I tried to hide/remove these actors, but my action for that didn't work. Basically I try to set the visibility to 0 and hope that it lags much less and that setting the visibility to 1 would reset the prior situation.
But I don't really think that the result would be satisfying as they would still be in the memory as an actor that needs to be progressed.
So, what would be the best way to check or track that a unit has been visible to the player?
edit:
Hiding the actors seems to work pretty good. It raised my FPS to 70 from 5.
Maybe I run into a tiny problem with Renee2islga's actor visibility. But that's easy to fix in my map.
I've found a critical problem in my map which created huge FPS decreases in my map: the snapshot images in the fog.
9000 of these eat like all FPS on my computer.
I'm already unloading the units in my dungeons to maintain an acceptable frame count, but the images are the next problem with it.
So, now I am searching for the best way to receive/save the information, if a player had vision of that specific unit or not.
If I can identify these information I can recreate these images by revealing these units after loading the area.
I wish I can do something different than scripting the vision myself and store my info in the dungeon units that way. :S
As far as it seems these images are Snapshot actors (CActorSnapshot), but that's how far I've explored that.
But I don't think I can get that info out of actors, can I?
I tried to hide/remove these actors, but my action for that didn't work. Basically I try to set the visibility to 0 and hope that it lags much less and that setting the visibility to 1 would reset the prior situation.
But I don't really think that the result would be satisfying as they would still be in the memory as an actor that needs to be progressed.
So, what would be the best way to check or track that a unit has been visible to the player?
edit:
Hiding the actors seems to work pretty good. It raised my FPS to 70 from 5.
Maybe I run into a tiny problem with Renee2islga's actor visibility. But that's easy to fix in my map.