Author Topic: Game start to freeze for 10-20 seconds after some last updates  (Read 1542 times)

Offline nynja

  • Newbie
  • *
  • Posts: 8
Hello.
Game start to freeze for 10-20 seconds after some last updates. I begin campaign with 7.014 version and all was good. Some days I didn't play.
With 7.018 I load my latest save to continue that campaign, and discover that game begins sometimes to freeze for 10-30 seconds and does not respond to mouse and keyboard. Animation and simulation stops, only background music continue playing. After 10-30 second game unfreezing and I can continue to play. These bug happens unpredictable once in 2-10 minutes.
7.019 - same freezing.

New campaign didn't try yet.

Is anyone had those problems or just me?

(sorry for any grammar mistakes)

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Game start to freeze for 10-20 seconds after some last updates
« Reply #1 on: April 12, 2014, 09:19:42 pm »
This is the first I've heard of it, but the last update's only been out a bit more than a day.

To have any real chance of fixing this, though, I need that save that you can load and get a freeze (in 10-20 seconds, I think you said).  That way I can reproduce the problem and see what's going on.

So, if you can, just make a post here, and underneath the textbox you're typing into click "Additional Options..." and then "Choose File" to upload your save.

Thanks! :)
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 nynja

  • Newbie
  • *
  • Posts: 8
Re: Game start to freeze for 10-20 seconds after some last updates
« Reply #2 on: April 12, 2014, 09:42:22 pm »
I spend some time to ensure that this save is really has that "bug".
Quote
These bug happens unpredictable once in 2-10 minutes.
And now discover that it actually is "predictable". After loading this save, after nearly minute, when global timer of game show "17:30:01" and "17:30:05" in left upper corner of screen freeze happens everytime.
Additionally: 17:30:01 - is time when AI is autoprogressing (+1).
Hope this helps.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Game start to freeze for 10-20 seconds after some last updates
« Reply #3 on: April 12, 2014, 10:22:08 pm »
Thanks very much :)

Ok, when I run the save with Reinforcement Logging on (which I normally have on), it does indeed freeze at 17:30:01.  Basically there's just too much to log and it grinds to a near-halt executing the reinforcements code (eventually it would die, I think).  I've put warnings in the tooltip of that logging option partly because it can get so big, but I think I may need to just disable that for the public build to avoid these kinds of freeze/out-of-memory problems (you aren't the first to run into it).

On the other hand, perhaps you didn't have Reinforcement Logging on?  It's on the Advanced tab of the settings window, if you don't mind checking.

Anyway, when I turn off Reinforcement Logging I get a temporary freeze of a few seconds at 17:30:00, not :01, (presumably there's a fairly ridiculous amount of reinforcing going on, as you have taken a lot of territory, etc) but then it gets going again.  Then it has another brief freeze at 17:30:05 (that's when the other AI player is doing its reinforcement, I bet), and then it proceeds along just fine.


... OH, now I actually read your original question carefully, and I see you weren't saying the game froze solid forever, just for 10-20 seconds.  Yea, it might do that even without reinforcement logging depending on the machine.

Anyway, I'm afraid I don't have a quick fix for this (and I need to get some sleep) but I will soon be looking at making the reinforcements logic more efficient :)
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: Game start to freeze for 10-20 seconds after some last updates
« Reply #4 on: April 12, 2014, 10:57:03 pm »
Actually I had a hunch on how to improve things and it turned out pretty well.  So 7.020 is out now (those performance improvements being the only change in it).  Please retest when you get a chance and let me know how it goes :)

In my tests it went from a roughly 5-second freeze to a roughly 1-second freeze.  Not great, but not nearly as bad either.
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 nynja

  • Newbie
  • *
  • Posts: 8
Re: Game start to freeze for 10-20 seconds after some last updates
« Reply #5 on: April 13, 2014, 06:24:09 am »
Yes 7.020 greatly decrease freeze time to nearly second or so.
Big thanks.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Game start to freeze for 10-20 seconds after some last updates
« Reply #6 on: April 13, 2014, 08:36:15 am »
You're welcome :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

 

SMF spam blocked by CleanTalk