Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Save Games take a long time to save  (Read 3807 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Save Games take a long time to save
« on: January 02, 2008, 07:51:47 PM »

Hello. My save games are taking a very long time to be saved.  Is there a way to speed them up? Are they compressed?

Does the save game store details about every scene visited, such as which sprite's are on which entity etc?  I've noticed there is a tick box for 'remember node states' in the scene editor. If this is not ticked will less data be put into a save game?

Thanks
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Save Games take a long time to save
« Reply #1 on: January 02, 2008, 08:15:33 PM »

Generally speaking, long save times mean something is cumulating in memory. Like, loading windows/entities and not unloading them. Can you track down when the slowdown happens? Like after visiting a certain scene, or after visiting certain number of scenes etc.?

The scene state checkbox probably won't make a big difference.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Save Games take a long time to save
« Reply #2 on: January 02, 2008, 11:05:17 PM »

The file size of my save games doesn't rise in any real size, between the first save or one after several hours of play (The file size is about 500 KB). My save is slow even on my first game's save.

Could this be one of my issues? The menu loading code...I am wondering if my menu isn't being unloaded because of the GoExclusive?

Code: [Select]
var WinMenu = Game.LoadWindow("interface\system\menu.window");
WinMenu.Center();
WinMenu.GoExclusive();
Game.UnloadObject(WinMenu);
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Save Games take a long time to save
« Reply #3 on: January 02, 2008, 11:28:25 PM »

No, this code is fine, the window will unload once it's closed. Look more like into something like loading stuff in the base.inc file, or some other file included in all scripts.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Save Games take a long time to save
« Reply #4 on: January 02, 2008, 11:31:50 PM »

Also, you can try calling the Game.DEBUG_DumpClassRegistry() method somewhere after the game is started. It will create a log file in your game directory, containing an immediate state of all game objects. It would tell me more.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Save Games take a long time to save
« Reply #5 on: January 03, 2008, 04:58:40 PM »

Thank you. I shall use the Game.DEBUG_DumpClassRegistry() and send you the results.
Logged
 

Page created in 0.534 seconds with 24 queries.