Page 1 of 2

Performance Issues in later game

Posted: Fri Apr 25, 2014 9:53 am
by Thebitlocker
Hi all,

with my Mac I always get performance issues in the later game.
Every turn takes longer and longer.
It starts instantly without warning.

The most time, when I research in the third age (golden techs).

System:
Macbook Air
MacOs 10.9.2
1,7Ghs i5
4 GB Ram
Game 1.2.0

It is independant from the number of KI or map size. So i think it is a game-mechanics problem.

Do you have the same issue?

Thank you very much
best regards
Thebitlocker

Re: Performance Issues in later game

Posted: Sat Jun 07, 2014 1:27 pm
by icarus7234
Having the exact same issue, major lag in the late game.

As soon as there are lots of units for the AI to control, it just sucks all the performance out of the game. Turns that would normaly be 2 seconds max now last quite a while... and the FPS sufferes terribly while its processing, then returns to normal the instant its my turn to play. Even with most of the map fogged over and/or staring at the ocean to avoid looking at anything and adding to the issue, it just doesn't help.

I'm on a desktop PC running Linux/Ubuntu 14.04 with updated drivers.
3.06Ghz - I7
6GB - Ram
Nvidia GTX 560

Playing the current steam version, at time of posting.

Re: Performance Issues in later game

Posted: Sat Jun 14, 2014 6:58 am
by PJMayo
Just adding my support. I, too, am suffering severe performance issues during the endgame. I have systems that support extremely large and complex Civ5 games at the highest settings for graphics without pausing, so it appears to be a Pandora issue.

I was hoping for a way to disable animations so the hit wasn't so obvious. Or, at least disable the animations for all the troop movement, since the camera doesn't track them anyway.

Thanks,
Phil.

Re: Performance Issues in later game

Posted: Sat Jun 14, 2014 2:07 pm
by void
Hi guys, could you please post save games in which things run really slow for you?

Re: Performance Issues in later game

Posted: Sun Jun 15, 2014 1:57 pm
by icarus7234
This was the furthest point I could get a game... the slow down is now so bad its not worth waiting for the AI to end its turn properly. My turn comes around, the AI is still moving its unit 5 minutes later and the FPS is just dead.

I realise this is a fairly busy map and that I am playing past the victory conditions, but the lag was getting worse and worse and worse from mid game onwards up until this point. And as my post stated before, even with no enemy units on screen, or even visible anywhere on the map, the lag is equally bad.

You guys actually got a fairly decent review from Total Bisctuit the other day in fact, he also noticed it, so maybe there's more of us out there.

... sites 'Upload attachement' tool wont accept the file type, it also wont accept a generic zipped/compressed file type due to size limitations and I can't add a link, or a shortened link to my post as it flags me for spamming.

Re: Performance Issues in later game

Posted: Tue Jun 17, 2014 7:13 am
by m0nk3n
world size: medium, world shape: archipelago, alien agression: very low, pace: standard, players: 6, turn 396.

it is going very slow. so slow that i dont want to research anymore cause i think i might break the game somehow. which is a bad thing.

specs: i7-3820 3,6 ghz (3,8 ghz turbo), 16gb 1866mhz, asus radeon hd 7970 3gb.

wouldnt let me post savegame cause the file was too big.

Re: Performance Issues in later game

Posted: Tue Jun 17, 2014 11:42 am
by void
In that case please email your saves to pandora@proxy-studios.com.

Re: Performance Issues in later game

Posted: Wed Jun 18, 2014 1:53 am
by m0nk3n
ok, i've emailed it. should be labeled : save game late game laggyā€¸

Re: Performance Issues in later game

Posted: Sat Jun 21, 2014 11:51 pm
by m0nk3n
have you looked at the save game?

Re: Performance Issues in later game

Posted: Wed Jun 25, 2014 12:59 pm
by void
Hello m0nk3n,

Yes I have, turns finish for me in 2 - 3 seconds. What are your hardware specs? Also, do you per chance have a log file of one of the laggy games? Since we time stamp with seconds we might see what takes so long.

Re: Performance Issues in later game

Posted: Fri Jun 27, 2014 9:07 pm
by m0nk3n
here is the log files

Re: Performance Issues in later game

Posted: Tue Jul 01, 2014 3:43 pm
by m0nk3n
does anyone took a look at this yet?

Re: Performance Issues in later game

Posted: Wed Jul 02, 2014 3:47 pm
by void
Thanks! According to the log file turn processing takes under a second, what's your framerate (can be displayed via Alt+F1)?

Re: Performance Issues in later game

Posted: Wed Jul 02, 2014 6:49 pm
by m0nk3n
it's around 72 when im not triggering next turn and when i do it drops to 12

Re: Performance Issues in later game

Posted: Wed Jul 02, 2014 8:20 pm
by pipfromslitherine
You might also want to check the memory use using Acivity Monitor during the game. It may be that the turn is completing quickly, but that there is then virtual memory that is having to be managed back into main RAM afterwards?

Cheers

Pip

Re: Performance Issues in later game

Posted: Wed Jul 02, 2014 10:15 pm
by dmantione
Hi Pip,

I think that posted logfile is misleading. I experience the issue as well, allthough I haven't found it that annoying.

From one of my own games:

[2014-Jul-02 21:47:31] Processing turn 384 ...
[2014-Jul-02 21:47:31] Processing AI (pre-pass) ...
[2014-Jul-02 21:47:31] ResearchAgent::process Bugs: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Giants: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Flyers: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Leviathans: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Aspidochs: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Sharks: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Invaders: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process QueenFlyers: 0 ms
[2014-Jul-02 21:47:31] ResearchAgent::process Scientific: 9 ms
[2014-Jul-02 21:47:32] ResearchAgent::process Economic: 16 ms
[2014-Jul-02 21:47:32] AI (pre-pass) processed.
invasion remaining turns: 0
[2014-Jul-02 21:47:33] Processing AI (post-pass) ...
[2014-Jul-02 21:47:33] AI (post-pass) processed.
[2014-Jul-02 21:47:33] Turn 384 processed.
[2014-Jul-02 21:47:33] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: UnitProductionComplete.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: CityGrown.
[2014-Jul-02 21:47:34] Event: BuildingProductionComplete.
[2014-Jul-02 21:47:54] Event: EnemyDetected.
[2014-Jul-02 21:47:55] Saving game ...
[2014-Jul-02 21:47:55] Game saved (465 kB).

You might conclude the turn processing took only 2 seconds, but it is only when the "Game saved" message is printed that the next round start and you can continue playing. As you can see there is 22 seconds between the "turn 384 processed" message and the "Game saved" message. I believe it is this 22 seconds that annoys people. Disk activity or memory pressure can be ruled out as a cause... my system has 8GB of memory, about 5GB unused. CPU is an i5-3210M CPU @ 2.50GHz, should be more than plenty, if you think this is still too low I'll redo the experiment on my desktop monster with 32GB RAM and a Xeon E5-2670 CPU :wink:. No disk activity observed.

While running the game in a window, I have run a "perf top" during this 22 second period and created a screenshot:
pandora_perf.jpg
pandora_perf.jpg (249.15 KiB) Viewed 2779 times
Highest cpu consumer is a memcpy routine, then an unnamed function in the Nvidia OpenGL library. 3rd is a function called matchesUnit in the Pandora binary itself.

Looking at these percentages, perhaps that matchesUnit can be looked at, but I don't think there is a big issue with game code being inefficient. My impression is that the game is waiting on something... like data to come in or so. But here I can only speculate as I have no knowledge about the game internals.

If you want to have the savegame file, let me know.

Re: Performance Issues in later game

Posted: Thu Jul 03, 2014 2:09 pm
by m0nk3n
couldnt be my system. have an i-7 3820 and 16gb ram and a 3gb graphics card. and at one point the game just hang on next turn waiting for some movement on next turn. i had to close the game and start it again to make it move.

let me clarify for what i think... the game is waiting to write the movement for all the other factions. for instance when i was doing 1 v 1 there was no problem moving right after i clicked next turn it went in an instant. and thats where the memory consumption is being taken from. all the other factions movement.

as long as the enemy/allies factions are keeping the unit count within a certain size or number the rendering should be fine.

Re: Performance Issues in later game

Posted: Fri Jul 04, 2014 10:57 pm
by void
Hi dmantione, thank you, in the log m0nk3n posted there is no delay for the 'Game saved.'. Could you please send your save to pandora@proxy-studios.com.

Re: Performance Issues in later game

Posted: Sat Jul 05, 2014 7:11 am
by dmantione
Save game has been sent.

Re: Performance Issues in later game

Posted: Tue Jul 08, 2014 6:20 pm
by void
Alright, there should be some noticeable improvements with the next beta update. The server now waits for clients to finish turn processing before moving on to the execution of unit and operation orders.