Performance Issues in later game

Moderators: Pandora Moderators, Slitherine Core

Thebitlocker
Lance Corporal - Panzer IA
Lance Corporal - Panzer IA
Posts: 10
Joined: Mon Aug 05, 2013 3:54 pm

Performance Issues in later game

Post 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
icarus7234
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 2
Joined: Sat Jun 07, 2014 1:23 pm

Re: Performance Issues in later game

Post by icarus7234 »

word
Last edited by icarus7234 on Fri Jul 31, 2020 1:58 am, edited 1 time in total.
PJMayo
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Sat Jun 14, 2014 6:51 am

Re: Performance Issues in later game

Post 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.
void
Proxy Studios
Proxy Studios
Posts: 256
Joined: Wed Jul 18, 2012 12:19 pm

Re: Performance Issues in later game

Post by void »

Hi guys, could you please post save games in which things run really slow for you?
Lorenz Ruhmann
Proxy Studios
icarus7234
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 2
Joined: Sat Jun 07, 2014 1:23 pm

Re: Performance Issues in later game

Post by icarus7234 »

word
Last edited by icarus7234 on Fri Jul 31, 2020 1:58 am, edited 1 time in total.
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post 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.
void
Proxy Studios
Proxy Studios
Posts: 256
Joined: Wed Jul 18, 2012 12:19 pm

Re: Performance Issues in later game

Post by void »

In that case please email your saves to pandora@proxy-studios.com.
Lorenz Ruhmann
Proxy Studios
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post by m0nk3n »

ok, i've emailed it. should be labeled : save game late game laggy‏
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post by m0nk3n »

have you looked at the save game?
void
Proxy Studios
Proxy Studios
Posts: 256
Joined: Wed Jul 18, 2012 12:19 pm

Re: Performance Issues in later game

Post 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.
Lorenz Ruhmann
Proxy Studios
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post by m0nk3n »

here is the log files
Attachments
Logs.rar
(15.58 KiB) Downloaded 245 times
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post by m0nk3n »

does anyone took a look at this yet?
void
Proxy Studios
Proxy Studios
Posts: 256
Joined: Wed Jul 18, 2012 12:19 pm

Re: Performance Issues in later game

Post by void »

Thanks! According to the log file turn processing takes under a second, what's your framerate (can be displayed via Alt+F1)?
Lorenz Ruhmann
Proxy Studios
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post by m0nk3n »

it's around 72 when im not triggering next turn and when i do it drops to 12
pipfromslitherine
Site Admin
Site Admin
Posts: 9862
Joined: Wed Mar 23, 2005 10:35 pm

Re: Performance Issues in later game

Post 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
follow me on Twitter here
dmantione
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Sun Apr 27, 2014 1:48 pm

Re: Performance Issues in later game

Post 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 5888 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.
m0nk3n
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 21
Joined: Sun Jun 15, 2014 5:04 am

Re: Performance Issues in later game

Post 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.
void
Proxy Studios
Proxy Studios
Posts: 256
Joined: Wed Jul 18, 2012 12:19 pm

Re: Performance Issues in later game

Post 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.
Lorenz Ruhmann
Proxy Studios
dmantione
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Sun Apr 27, 2014 1:48 pm

Re: Performance Issues in later game

Post by dmantione »

Save game has been sent.
void
Proxy Studios
Proxy Studios
Posts: 256
Joined: Wed Jul 18, 2012 12:19 pm

Re: Performance Issues in later game

Post 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.
Lorenz Ruhmann
Proxy Studios
Post Reply

Return to “Pandora : Tech Support”