C
Crirus
I have ~200 players on a server...
They share the same 512x512 tiles map...
Each player have an explored area and a visible area... visible area is
given by players's current units and buildings...
Now, I'm facing with the problem of how to store does areas...
One way is to keep a explored(512,512) array of booleans... each
explored(i,j)=True mean player explored the tile on (i.j)... the same for
visible...
Each time a unit/building change it's visibility by
moving/creating/destroying etc I have to recompute the whole visible and
explored arrays
I think is quite memory costly to store in array of 512 form.... any other
ideeas to shrink this memory usage?
On the other side, the computing of all does arrays can be time
consumming... how do you guys, think I should implement that?
All this true values on my arrays should be converted on GraphicsPaths on
client size map to reflect the map visiblity
Crirus
They share the same 512x512 tiles map...
Each player have an explored area and a visible area... visible area is
given by players's current units and buildings...
Now, I'm facing with the problem of how to store does areas...
One way is to keep a explored(512,512) array of booleans... each
explored(i,j)=True mean player explored the tile on (i.j)... the same for
visible...
Each time a unit/building change it's visibility by
moving/creating/destroying etc I have to recompute the whole visible and
explored arrays
I think is quite memory costly to store in array of 512 form.... any other
ideeas to shrink this memory usage?
On the other side, the computing of all does arrays can be time
consumming... how do you guys, think I should implement that?
All this true values on my arrays should be converted on GraphicsPaths on
client size map to reflect the map visiblity
Crirus