WhiteTreePaladin Posted July 31, 2010 Report Share Posted July 31, 2010 (edited) profile log per discussion:profile.txtLatium_profile.txt - after fresh load, with nothing particular going oncombat_profile.txt - with 7 enemy units standing aroundI noticed something interesting:Release mode: tried half a dozen timesIt is difficult to lose even if I want toIf I attack, then let it play out on it's own, I winDebug mode: tried twiceIt is difficult to win even if I want toIf I attack, then let it play out on it's own, I lose Edited July 31, 2010 by WhiteTreePaladin Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted July 31, 2010 Report Share Posted July 31, 2010 Hijacking this topic for more conclusions from multiplayer testing:* Need to work out why the A* part in that profile log is so much larger than the times I get.* Need to profile and understand JS memory usage, since in long games it can run out and then it becomes very unhappy.* Need to cope better with >200msec latency.* Need to fix pathfinding through dense groups of buildings.* Need to fix receiving orders relating to now-nonexistent entities.* Need decay of corpses and projectiles.* Need in-game chat. (Also it should be logged, so we can refer back after testing (even if the game crashes).)* Data-file verification would be good, to report mismatches helpfully rather than throwing an immediate OOS.* Trees should probably have more wood, else they get used up very quickly.* Female citizens should sound less manly when they die.* Selected units should be highlighted on the minimap. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted August 2, 2010 Report Share Posted August 2, 2010 * Need to profile and understand JS memory usage, since in long games it can run out and then it becomes very unhappy.Looks like it currently uses about 200KB plus around 2KB per unit at the start of a game, and it was configured with a 4MB heap size. Since we didn't have decay in that match, it's possible the corpses were just too much for it. Should be better with decay, and I've changed it to 8MB and added a dumpHeaps() function (in the console) (only in debug-mode builds) which may help debug any future problems. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.