JosephClay / beyond-beyaan

Automatically exported from code.google.com/p/beyond-beyaan
Other
0 stars 0 forks source link

Influence maps taking a while to update between turns #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Have a large galaxy, preferably over 100 x 100 size.  Note the long pause 
between turns when it's processing influence maps.

Currently it's calculating influence map for each empire, this map includes all 
empires that the empire is in contact with, as well as itself, so processing 
map for each empire is expensive.  Each empire should only contain its own 
influence, so there would be only one pass per turn, and when viewing the 
influence map, use the other empires' influence map to show their influence, 
instead of storing it in the current empire.

Also need to optimize the influence map calculations.  Currently it creates a 
disc and adds it to the map for an influence point, then if there's more points 
remaining, expand the disc and add it again until no points are left.  This can 
be improved on, and would most likely result in a massive performance 
improvement.

Original issue reported on code.google.com by zeraa...@gmail.com on 17 May 2011 at 2:51

GoogleCodeExporter commented 9 years ago
The cause of the slow-down is the generation of the sprite for influence maps.  
If we can somehow create the sprite on GPU, this will speed the process up.

Original comment by zeraa...@gmail.com on 2 Aug 2011 at 2:59

GoogleCodeExporter commented 9 years ago
No longer used

Original comment by zeraa...@gmail.com on 23 Nov 2011 at 5:19