I am assuming you mean for AI, not rendering - you will have to make some kind of prototype of your AI.
This prototype should be a reasonable representation of how the soldiers will really behave - you can calculate what the performance and time complexity of various parts of your code is - with the help of a profiler.
It then should be possible to work out how it would perform with 1000 or 1 million soldiers, without having to actually code that ability in.
On the other hand, the code for 1k soldiers is probably not more complex than 10, unless you optimise it differently. Once you have 10v10, run it with 1k v 1k, and if it''s too slow, apply some of the above optimisation ideas
Mark
How to estimate code execution speed
its better tu run it with 10M v 10M i think, because then the performance-''swap'' caused by aplications running in background is not so weighty, and you get a higher priority (since you can probably just devide ith through 10k, but be aware of variable-initialisation, because you must initialise them, if you have 10M or 1k, doesnt increas/decrease performance of this process...)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement