Load game - speed

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
spaceinvader803
Posts: 3
Joined: April 6th, 2023, 9:00 am

Load game - speed

Post by spaceinvader803 »

Great job guys, love playing the game - for relaxation and exercising my braincells :)

Please have a look at speeding up the Load Game function.

Greetings and wishes for a wonderful spring.
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Load game - speed

Post by Pentarctagon »

Can you be more specific about what's being slow?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
spaceinvader803
Posts: 3
Joined: April 6th, 2023, 9:00 am

Re: Load game - speed

Post by spaceinvader803 »

Sure, I do a lot of saves during gameplay, so currently there are several thousands GZ-files in my saves-directory.

It seems like the Load Game function reads through all of these before displaying the Load Game list - takes about 10 seconds on my PC.

I occasionally clean up the directory, but I think the algorithm could be improved to load only saves of the current campaign or, if no campaign is currently running, let me choose which campaign to load game from for a start.

Cheers :)
User avatar
Ravana
Forum Moderator
Posts: 3018
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Load game - speed

Post by Ravana »

In order to know which addon save is from, game would still need to unpack the file and read it.
User avatar
Toranks
Translator
Posts: 168
Joined: October 21st, 2022, 8:59 pm
Location: Sevilla
Contact:

Re: Load game - speed

Post by Toranks »

If disk space is not an issue, you can save it unzipped selecting that option in advanced preferences
gnombat
Posts: 710
Joined: June 10th, 2010, 8:49 pm

Re: Load game - speed

Post by gnombat »

Ravana wrote: April 8th, 2023, 1:47 pm In order to know which addon save is from, game would still need to unpack the file and read it.
The game could create a separate subdirectory in saves/ for each addon. (Actually it would have to be for each campaign - it would need to work for mainline content too.)
User avatar
Yomar
Posts: 396
Joined: October 27th, 2011, 5:14 am
Contact:

Re: Load game - speed

Post by Yomar »

Hmm, strange, I never had slow load issues. 🤔
Now I have an SSD hard disk and everything is faster, but even on my old laptop saves don't give me any problems and they are even all compacted.
Beheld the origins of BFW.
Max G on WIF
Rank 🌟🌟🌟🌟🌟
Post Reply