project-navigation
Personal tools

Author Topic: Load saved game very slow  (Read 20182 times)

Offline SoftwareSimian

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Load saved game very slow
« on: March 14, 2013, 02:53:08 am »
In v2.4 the Load Game function worked pretty quickly, just a couple seconds to load a game. Now with v2.5 (2013mar11,win32) it takes a very long time (20-40 seconds) to load a game. Is this a known issue?

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: Load saved game very slow
« Reply #1 on: March 14, 2013, 06:23:39 am »
Uploading the save for somebody to check this would help a lot here.

I tried and didnĀ“t encounter something like this.

Offline SoftwareSimian

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Re: Load saved game very slow
« Reply #2 on: March 14, 2013, 02:13:16 pm »
I'm not certain, but it seems to take longer to load the further into the game I get. Possibly more data on bases, soldiers, equipment, etc to load, but still I don't think it should take nearly that long to load. Saving is near-instantaneous.

The attached savegame takes exactly 20 seconds to load on my system (v2.5-2013mar11, Win7.64, i7-3930K, GTX570)

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Load saved game very slow
« Reply #3 on: March 14, 2013, 02:43:42 pm »
Tried it here and didn't have any delays...

Offline jffdougan

  • Rookie
  • ***
  • Posts: 56
    • View Profile
Re: Load saved game very slow
« Reply #4 on: March 15, 2013, 02:02:39 am »
I'm having similar issues, although it had been a while since I'd played 2.4, so wasn't in a position to make the immediate comparison.

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: Load saved game very slow
« Reply #5 on: March 15, 2013, 06:17:20 am »
I could save & quickload without problems.

Offline SoftwareSimian

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Re: Load saved game very slow
« Reply #6 on: March 15, 2013, 02:46:35 pm »
I'm not sure if there's any internal difference between quickload and regular load, but since I hadn't tried a quickload I tried that now -- makes no difference. Still takes about 20 seconds to load any game. And the computer is blocked while loading -- the UFOAI cursor is "stuck", and I get the Windows "busy" cursor (spinning blue circle on Win7) while the game loads.

Are there any debug options I can turn on to help try and figure out where this slowdown is occurring? And why it affects me and jffdougan but not H-Hour and ShipIt?  Is it perhaps platform-specific? Is everyone here trying it on Windows?

Offline H-Hour

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 1923
    • View Profile
Re: Load saved game very slow
« Reply #7 on: March 15, 2013, 03:11:59 pm »
ShipIt and myself are both Windows (me Win7).

Could it be rendering delays from loading the models into the system? Try turning shaders and other options off in the video settings...

Offline ShipIt

  • Project Artist
  • Captain
  • ***
  • Posts: 906
    • View Profile
Re: Load saved game very slow
« Reply #8 on: March 15, 2013, 03:53:06 pm »
Iirc the delay when switching the time was caused by the models precaching option. Maybe turning this off in the options menu helps.

Offline SoftwareSimian

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Re: Load saved game very slow
« Reply #9 on: March 15, 2013, 04:39:21 pm »
Try turning shaders and other options off in the video settings
Iirc the delay when switching the time was caused by the models precaching option. Maybe turning this off in the options menu helps.
I have been running at highest detail settings, and with pre-caching enabled.

However, I just tried both Medium and Low video presets, and I tried disabling options:overall:precache_models. None of those changes (restarting the game for each) made any appreciable difference to load times.

Offline jffdougan

  • Rookie
  • ***
  • Posts: 56
    • View Profile
Re: Load saved game very slow
« Reply #10 on: March 15, 2013, 08:32:43 pm »
Oddly, my save times aren't affected - just loading.

Offline SoftwareSimian

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Re: Load saved game very slow
« Reply #11 on: March 15, 2013, 10:00:15 pm »
Oddly, my save times aren't affected - just loading.
Same here -- saving is near-instantaneous, but loading is a 20-second ordeal. Loading a saved game takes approximately the same amount of time as initially loading the game.  I'm not sure what kind of preloading/caching is (or can be) done during the loading process, but it seems a likely candidate for the slowdown. But having disabled what options I could see to no effect, combined with H-Hour and ShipIt not having problems, leaves me confused.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Load saved game very slow
« Reply #12 on: March 18, 2013, 03:49:20 pm »
Saving the game is just saving the game. Loading however: shutdown campaign, start campaign, load game, render world. It should not (and for most of us it doesn't) take much time either but comparing save and load times makes no sense.


Have you compiled the game for yourselves?

Tips:
- set pre-cache enabled (slower boot time but more smooth model loading later)
- make sure you have models compiled (mdx files via make models)

May worth a try: Exclude savx extension from your antivirus? Do you have the same kind?


Other than that, a profiling log from the loading process is welcome...

-geever

Offline SoftwareSimian

  • Rookie
  • ***
  • Posts: 34
    • View Profile
Re: Load saved game very slow
« Reply #13 on: March 18, 2013, 05:05:04 pm »
Have you compiled the game for yourselves?
No, I'm just using the provided nightly Windows build. Updating the binaries with the nightly binaries only made no difference positive or negative.

set pre-cache enabled (slower boot time but more smooth model loading later)
Is this the same "pre-cache models" option under Options->Overall->Precache Models? If so, I've tried that and either enabled or disabled makes little visible difference in game boot or load game times.

make sure you have models compiled (mdx files via make models)
I don't see any .mdx files anywhere in the installation director. Where should they live?

May worth a try: Exclude savx extension from your antivirus? Do you have the same kind?
I disabled my antivirus entirely (Panda Cloud) and it made no difference.

Other than that, a profiling log from the loading process is welcome...
And how do I make you one?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Load saved game very slow
« Reply #14 on: March 18, 2013, 06:22:53 pm »
No, I'm just using the provided nightly Windows build. Updating the binaries with the nightly binaries only made no difference positive or negative.
Is this the same "pre-cache models" option under Options->Overall->Precache Models? If so, I've tried that and either enabled or disabled makes little visible difference in game boot or load game times.
I don't see any .mdx files anywhere in the installation director. Where should they live?
I disabled my antivirus entirely (Panda Cloud) and it made no difference.
And how do I make you one?

If you use the installer there isn't really much I think you can do without big efforts (learning how to build and debug) unfortunately. :(
( mdx files are packed in case of the installer. And for profiling you need a special build... )

-geever