Author Topic: Performance regression in latest patch?  (Read 4969 times)

Offline DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Performance regression in latest patch?
« on: July 17, 2012, 11:46:05 pm »
Hello,

I have attached a save game which was working A-OK in the previous patch, when I was playing on Sunday July 15. After patching today, the game is an unplayable crawl while viewing the system with all my ships (the home system). Loading the ships into a transport resolves the issue, but obviously this is not much of a work around. I also note that cpu usage is pegged on 2/8 cores while viewing that system.

Restarting AI War does not resolve the issue. It's possible this is unrelated to the patch, but it seems suspicious to me.

System specs:
Windows 7 Ultimate 64bit
Main Memory: 8GB
CPU: Intel Core i7-2600K @3.4GHz (8 cores)
Graphics: 2x AMD Radeon HD 6900, CrossFire enabled (4GB total graphics memory)

As you might imagine, I've never had even the slightest performance problem with AI War before.

I'll be happy to provide any other information you want.

Offline DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Re: Performance regression in latest patch?
« Reply #1 on: July 17, 2012, 11:50:29 pm »
Oh and before you ask, my graphics card drivers are up to date. :)

Offline DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Re: Performance regression in latest patch?
« Reply #2 on: July 17, 2012, 11:58:03 pm »
It seems to be graphics related somehow. Letting a battle run while I'm viewing another system doesn't seem to slow the game down, and even being in the system viewing over in a corner doesn't slow it down either. That is, I have to actually be viewing the ships for the lag to happen. Not sure if this observation is useful?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Performance regression in latest patch?
« Reply #3 on: July 18, 2012, 02:56:35 pm »
Is anyone else having this problem?  Can anyone else load up this savegame and see if they have troubles?  The problem is, in the unity editor on my machine when I run this, I'm getting 50-74 FPS.

My system specs:
Windows 7 Ultimate 64bit
Main Memory: 8GB
CPU: Intel Core i7 Sandy Bridge @3.6GHz (4 cores)
Graphics: NVidia 8800 GTS

I'm going to try a few other things and see if I can replicate this a different way...
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 x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Performance regression in latest patch?
« Reply #4 on: July 18, 2012, 03:12:04 pm »
Okay, on my mid-2010 Macbook Pro (Intel i5) I am able to duplicate a performance drop into the 20fps range.  However, that is running at the "High" performance profile that you had the game on.  Normally on my laptop I have to run it on Normal, and when I do I am getting 30fps on that machine.  If I zoom in to just the right area, I'm able to get it down to 12fps, though.

I'll take a bit of a further look and see if there's more that I can find out.
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 DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Re: Performance regression in latest patch?
« Reply #5 on: July 18, 2012, 03:15:57 pm »
Thanks for taking a look. I know this stuff is really hard to debug across platforms. etc. Let me know if there's anything else I can do.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Performance regression in latest patch?
« Reply #6 on: July 18, 2012, 03:23:38 pm »
My pleasure.  One thing I will note is that the ATI drivers have tended to be... well, rather horriffic lately.  There have been people who literally had all textures getting bent from the upper left and looking wrong in all their games on recent ATI drivers, and doing a rollback fixed that.  Etc.

So in a lot of respects, I wonder if this is a driver thing?  Have you updated your drivers lately?  It's also possible that since we improved the pipeline performance in general by switching to a new way of handling the pipeline, that the ATI drivers have revolted or something.  I don't have any way to be sure, though, as I haven't had an ATI card for a few years now.
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 DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Re: Performance regression in latest patch?
« Reply #7 on: July 18, 2012, 03:37:47 pm »
My drivers are up to date, but now that you mention it I have also been experiencing some strange behavior in League of Legends with textures. I will try rolling back the drivers, but I probably won't have a chance until tomorrow.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Performance regression in latest patch?
« Reply #8 on: July 18, 2012, 03:45:01 pm »
Okay, thanks for the note.
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 tigersfan

  • Arcen Games Contractor
  • Arcen Staff
  • Master Member Mark II
  • *****
  • Posts: 1,599
Re: Performance regression in latest patch?
« Reply #9 on: July 18, 2012, 04:06:19 pm »
I have an A6 3600 2.1Gzh 4 core CPU with a Radeon 6530D GPU, running driver version 8.861.1.3000. (Yeah, the drivers are a bit old, but, right now, I like to resist change on my computer, so if my drivers aren't causing any issues, I tend to leave them alone. :) )

Running your save, I'm getting around 22 FPS and none of my 4 cores is maxed out (though one of them was chugging along at a good clip).

So, right now, I'm guessing your drivers are the culprit. Let us know how the roll-back goes.

Offline Kahuna

  • Core Member
  • *****
  • Posts: 2,222
  • Kahuna Matata!
Re: Performance regression in latest patch?
« Reply #10 on: July 19, 2012, 07:37:24 am »
For me it works fine but seems to be a bit laggier.
set /A diff=10
if %diff%==max (
   set /A me=:)
) else (
   set /A me=SadPanda
)
echo Check out my AI War strategy guide and find your inner Super Cat!
echo 2592 hours of AI War and counting!
echo Kahuna matata!

Offline doctorfrog

  • Hero Member
  • *****
  • Posts: 591
Re: Performance regression in latest patch?
« Reply #11 on: July 20, 2012, 12:27:22 pm »
Works ok here too (older ATI budget card with last week's drivers), but holding down alt and bringing up those destination lines drops the FPS noticeably.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Performance regression in latest patch?
« Reply #12 on: July 20, 2012, 12:38:19 pm »
Works ok here too (older ATI budget card with last week's drivers), but holding down alt and bringing up those destination lines drops the FPS noticeably.
That was true before, too.  It may be in greater degree now, I dunno.
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 DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Re: Performance regression in latest patch?
« Reply #13 on: July 21, 2012, 01:48:56 pm »
Hello,

I've spent the morning running tests and the TL;DR version is something performance related changed in AI War 5.042 that is still present in AI War 5.046. Of course, it is probably still some interaction of my system and the AI War update, but the performance problem is totally absent pre-5.042.

I tested all four combinations of:

AI War 5.000
AI War 5.046
AMD 12-3 drivers (released 3/28/12)
AMD 12-6 drivers (released 6/28/12)

I chose those versions of AI War because they're the only ones I know how to install (direct from Steam and direct from Steam plus beta updates). I chose those versions of AMD drivers rather randomly, but I wasn't playing AI War before March so using drivers older than that seemed unnecessary. I rebooted between every change of graphics drivers. I did not reboot between changes of AI War version.

In order to test, I could not use the save file I originally uploaded because it won't load in AI War 5.000. I used cheats to create about 2000 fleet ships in AI War 5.000 and used that save game (attached) in all tests.

The results were that AI War 5.000 worked splendidly in both AMD 12-3 and AMD 12-6. AI War 5.046 was unplayable in both AMD 12-3 and AMD 12-6. Here are some screenshots showing the performance:

https://picasaweb.google.com/111524973507026076668/AMD123AIWar5000?authkey=Gv1sRgCJWP8uGhwvba7AE
https://picasaweb.google.com/111524973507026076668/AMD123AIWar5046?authkey=Gv1sRgCJW21ObizOvpDg
https://picasaweb.google.com/111524973507026076668/AMD126AIWar5000?authkey=Gv1sRgCOnDx4C3qKS7uwE
https://picasaweb.google.com/111524973507026076668/AMD126AIWar5046?authkey=Gv1sRgCMDyq9KTuuPCZQ

It looks like the screenshots didn't capture the command lines shown when holding Alt down, but in both 5.000 versions, holding Alt to show queued move orders for the 2k units didn't drop fps at all.

Unfortunately I am not sure how to move forward here. The game is unplayable for me on AI Wars 5.042-5.046 and I doubt the issue will magically go away unless other people are affected too. Please let me know if I can do anything else to narrow this down.

Thanks,
Sean

Offline DrTall

  • Newbie Mark II
  • *
  • Posts: 21
Re: Performance regression in latest patch?
« Reply #14 on: July 21, 2012, 01:51:52 pm »
KHAAAAAAAAAAAAAAAANNNNNN!

Disabling CrossFireX resolves the problem.

I need CrossFireX enabled to play other games which are graphics intensive (AI War has never really been intensive on my system), but I can live with it disabled for AIWar. But does this help narrow the bug possibilities down?