Author Topic: Occasions freezes in game and really slow performance with large fleets  (Read 14081 times)

Offline Bud Backer

  • Full Member
  • ***
  • Posts: 140
I don't seem to recall the game hanging in-game until v8.xxx. Lately it stops and I get the spinning beach ball and the only way out is to Force Quit.

The other issue is that the game is really REALLY slow when I get fleet over 1000 ships and the lag is noticeable even with 800. Battles are a bit of an pain really. Manageable but choppy and less fun than I recall in v7.xxx.

I'm running this in a MacBook Pro, retina edition

I7 quad core, 2.7 ghz
16 gb ram
Nvidia gt650m, 1 gb VRAM

It runs graphically and memory intensive stuff really well and I don't think AI War is that demanding. Maybe I'm wrong. Or maybe it's something else.?

Offline Aklyon

  • Core Member
  • *****
  • Posts: 2,089
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #1 on: August 30, 2014, 11:47:15 pm »
What ship cap are you using?

Offline Bud Backer

  • Full Member
  • ***
  • Posts: 140
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #2 on: August 31, 2014, 12:47:57 am »
What ship cap are you using?

I had it at default.

Offline Bud Backer

  • Full Member
  • ***
  • Posts: 140
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #3 on: September 02, 2014, 12:44:59 pm »
*friendly bump*

Offline Hearteater

  • Core Member
  • *****
  • Posts: 2,334
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #4 on: September 02, 2014, 02:29:16 pm »
What is your performance setting at? Click on Stats to check what it is set at.  See the attached for reference.

Offline Bud Backer

  • Full Member
  • ***
  • Posts: 140
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #5 on: September 02, 2014, 10:41:22 pm »
What is your performance setting at? Click on Stats to check what it is set at.  See the attached for reference.

Originally it was set at High 50ms) but even set at the slowest/longest ms time (166ms) I get a warning that game speed is too slow (14%!!).

I run Empire/Rome Total War at max graphics settings, as well as Wargame Airland Battle, Europa universalis, Civ 5, all at rather demanding settings, with textures etc. Wargame seems to have less denanding graphics than those. Which makes me wonder if there is a change to the engine since the last version, where it ran smoothly, and I could even up to higher (better) settings than 50ms.

« Last Edit: September 02, 2014, 10:46:26 pm by Bud Backer »

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #6 on: September 04, 2014, 09:25:45 am »
The lag is probably related to the engine version change, yes, though if so it's presumably an interaction between that and some specific aspect of your machine as while we've gotten a number of reports of lag in 8.x it's certainly not everyone.  So it's hard to pin down, etc.

The freezes might be related to the "submit high scores to steam" option on the game tab of the settings window.  If you're running this from steam, anyway.  A lot of people have been having problems with the steam overlay in AI War over the past few weeks.  Running the game directly might help.

If you're already not running it with the overlay (or through steam at all) do you have any alternate machine to try the game on?  Just wanting to see if anything is different to help isolate the cause.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline blackied

  • Newbie
  • *
  • Posts: 7
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #7 on: September 04, 2014, 10:43:22 pm »
I'll jump in this thread too, since we seem to be having the same symptoms - it starts lagging when I can see more than 500-600 ships moving/attacking at once. If the camera isn't actually on the action it's fine, be it in the same planet or elsewhere. CPU usage also jumps up to ~100% on all cores. Surely I would have thought that the actual moving data was handled by the GPU?

My specs are:
Q9550
8GB
6950 x2 in CF
Win 7

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #8 on: September 04, 2014, 10:47:55 pm »
100% on all four of a Q9550's cores?  The game only does significant calculations on 2 threads! :)

But yea, if it's graphics-related then Unity's multi-threaded renderer could be going full bore on all of them, I suppose.  It's a black box to me.  Chris knows more, I'll ask if he has any ideas.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #9 on: September 04, 2014, 11:28:39 pm »
Ok, it might be the switch to the multi-threaded renderer in the newer unity version.  Here are a couple command line switches you can try (just run AIWar.exe with these) :

-force-gfx-st

-force-gfx-direct

(from http://docs.unity3d.com/Manual/CommandLineArguments.html )

If anyone experiencing performance issues in 8.x could try those two switches and let me know how it goes (good or bad) that would be a big help :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline blackied

  • Newbie
  • *
  • Posts: 7
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #10 on: September 05, 2014, 12:09:03 am »
Assuming I added the arguments correctly, no luck. Tried moving a fleet of ~1100 ships and FPS went to 4.

Some notes on the CPU usage:
When not playing it's idling from 5-20% over the 4 cores.
on the galactic map (~80 planets) it jumps to 65-90
Planet view zoomed in with nothing much on screen is 40-70
Planet view zoomed out with lots of draws is 75-95
Core usage is fairly balanced over the four.

Planet with buildings and turrets etc but overall low object count scrolls smooth zoomed out
Planet with fleets and stuff on it scrolls badly zoomed out (zoomed right in is better)

Definitely seems to be a render issue.

Don't know if it's relevant but I noticed that the game is only using I-draws but zero D-draws or D-swaps.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #11 on: September 05, 2014, 04:33:25 pm »
Pity, I'd hoped that those switches would help.

Just to help isolate exactly where things went wrong, it would help a lot if you (anyone having these problems) could:

1) download http://aiwar.s3.amazonaws.com/AIWar7047-oldengine.zip

2) unzip that and run it.  It's a self-contained version of the game from before the engine switch.  You'll need a license key to get out of trial mode but perhaps even in trial mode you can see if the problems are present for you or not.

3) play around with it a bit and see if any/all of the problems you reported are present, and let me know.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Bud Backer

  • Full Member
  • ***
  • Posts: 140
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #12 on: September 05, 2014, 07:06:03 pm »
The lag is probably related to the engine version change, yes, though if so it's presumably an interaction between that and some specific aspect of your machine as while we've gotten a number of reports of lag in 8.x it's certainly not everyone.  So it's hard to pin down, etc.

The freezes might be related to the "submit high scores to steam" option on the game tab of the settings window.  If you're running this from steam, anyway.  A lot of people have been having problems with the steam overlay in AI War over the past few weeks.  Running the game directly might help.

If you're already not running it with the overlay (or through steam at all) do you have any alternate machine to try the game on?  Just wanting to see if anything is different to help isolate the cause.

Hi Keith,

I'm so glad you responded!

First - I have disabled the High Scores to Steam option long ago, so that's not likely causing the issue.

Second - I disabled Steam Overlay as it would cause black screens (I think reported in another thread?) that disappeared once that was turned off. Discovered that during my own troubleshooting and then read about it here. So I was on the right track! :)

Unfortunately, I don't have another machine to load AI War onto to do further testing.

Now you gave a number of switches, but I think that is for the Windows version of the game, I  would not know how to implement them in OSX. Let me know if I'm missing something obvious.

You also gave a link to another (older) version of the engine. Can you tell me if that is for OSX, or simply the gentleman with the Windows version? Secondly, since I bought the game through steam, how do I enable the licence without keys?

Please do speak to Chris as you mentioned. I hope this can be resolved, I was so take with AI I got all the expansions and would love to continue enjoying this unique game. :)
« Last Edit: September 05, 2014, 07:07:48 pm by Bud Backer »

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #13 on: September 05, 2014, 07:14:35 pm »
Now you gave a number of switches, but I think that is for the Windows version of the game, I  would not know how to implement them in OSX. Let me know if I'm missing something obvious.
From this: http://stackoverflow.com/questions/1308755/launch-an-app-on-os-x-with-command-line

It looks like this will work:

open -n ./AppName.app --args -AppCommandLineArg

So in our case I think that would be

open -n ./AIWar.app --args -force-gfx-st -force-gfx-direct


Quote
You also gave a link to another (older) version of the engine. Can you tell me if that is for OSX, or simply the gentleman with the Windows version?
Hmm, I'm only seeing a windows executable in there, yea.  I can try to hunt up the mac one, but either way I'm interested to know if those command line switches do anything for you.


Quote
Secondly, since I bought the game through steam, how do I enable the licence without keys?
It will function fine in trial mode.  I'm happy to give you a key anyway, if it helps.


Quote
Please do speak to Chris as you mentioned.
I did, he's the one who pointed out the command line switches, etc :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline blackied

  • Newbie
  • *
  • Posts: 7
Re: Occasions freezes in game and really slow performance with large fleets
« Reply #14 on: September 06, 2014, 12:41:10 am »
I'll try out the old engine later this arvo and see how I go.

Sorry again for hijacking your thread somewhat Bud, hopefully this can solve the issues for both of us.