what compression system is the game using?

This forum is the ideal place for all discussion relating to X4. You will also find additional information from developers here.

Moderator: Moderators for English X Forum

Post Reply
alexbalex11
Posts: 8
Joined: Mon, 23. Aug 21, 18:05

what compression system is the game using?

Post by alexbalex11 » Sat, 21. Jan 23, 12:44

https://quixdb.github.io/squash-benchma ... ,lzma,zlib
looking at all different compression algorithms zstd is the best jack of all trade for size, speed, low overhead.

jlehtone
Posts: 21809
Joined: Sat, 23. Apr 05, 21:42
x4

Re: what compression system is the game using?

Post by jlehtone » Sat, 21. Jan 23, 15:35

The compression is not the bottleneck in this game. Therefore, messing with it yields next to no gain.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

magitsu
Posts: 402
Joined: Wed, 12. Dec 18, 21:59
x4

Re: what compression system is the game using?

Post by magitsu » Sat, 21. Jan 23, 15:45

Saves are gzip, but the compression part is told to represent only a minor share of the whole process of writing the different gamestate parts first into memory and then into a savefile.

alexbalex11
Posts: 8
Joined: Mon, 23. Aug 21, 18:05

Re: what compression system is the game using?

Post by alexbalex11 » Sat, 21. Jan 23, 16:01

if u could shave of saving and loading time from 30 seconds to 10 seconds that would be great tho.
it seems like a simple fix rather than just multithread more bro

magitsu
Posts: 402
Joined: Wed, 12. Dec 18, 21:59
x4

Re: what compression system is the game using?

Post by magitsu » Sat, 21. Jan 23, 16:05

alexbalex11 wrote:
Sat, 21. Jan 23, 16:01
if u could shave of saving and loading time from 30 seconds to 10 seconds that would be great tho.
it seems like a simple fix rather than just multithread more bro
It's already improved that much from what it was. 6.0 beta load time once again seems to improve from the previous versions. We are just paying the price for more dlcs added or longer playtime saves.
Everything simple has been done hundred times over at this point.
Last edited by magitsu on Sat, 21. Jan 23, 16:07, edited 1 time in total.

CBJ
EGOSOFT
EGOSOFT
Posts: 51918
Joined: Tue, 29. Apr 03, 00:56
x4

Re: what compression system is the game using?

Post by CBJ » Sat, 21. Jan 23, 16:06

OP, you don't seem to have read the previous replies. Compression and decompression form a negligible part of the saving and loading processes which, incidentally, are already multi-threaded. The way the threading works means that changing the compression algorithm would make approximately zero difference to the time.

User avatar
Tamina
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 4550
Joined: Sun, 26. Jan 14, 09:56

Re: what compression system is the game using?

Post by Tamina » Sat, 21. Jan 23, 16:47

alexbalex11 wrote:
Sat, 21. Jan 23, 16:01
if u could shave of saving and loading time from 30 seconds to 10 seconds that would be great tho.
it seems like a simple fix rather than just multithread more bro
Have you tried turning off compression for savegames in the game settings altogether? And did you see any significant differences in loading times?
Surely skipping compression altogether would have the least impact on performance, no?

Code: Select all

Und wenn ein Forenbösewicht, was Ungezogenes spricht, dann hol' ich meinen Kaktus und der sticht sticht sticht.
  /l、 
゙(゚、 。 7 
 l、゙ ~ヽ   / 
 じしf_, )ノ 

CBJ
EGOSOFT
EGOSOFT
Posts: 51918
Joined: Tue, 29. Apr 03, 00:56
x4

Re: what compression system is the game using?

Post by CBJ » Sat, 21. Jan 23, 17:01

No. Again, threading means that it makes essentially no difference. That's why we've turned it on again by default for all those who had turned it off previously.

magitsu
Posts: 402
Joined: Wed, 12. Dec 18, 21:59
x4

Re: what compression system is the game using?

Post by magitsu » Sat, 21. Jan 23, 17:23

Here's Bernd describing how X TECH 5 and save/load process is improved with 6.0.
https://youtu.be/mbfez5ljdE4?t=429

User avatar
Tamina
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 4550
Joined: Sun, 26. Jan 14, 09:56

Re: what compression system is the game using?

Post by Tamina » Sat, 21. Jan 23, 17:34

CBJ wrote:
Sat, 21. Jan 23, 17:01
No. Again, threading means that it makes essentially no difference. That's why we've turned it on again by default for all those who had turned it off previously.
I get that but since X4 offers everyone to try out if there is a difference in a practical manner, they can see for themselves if their theory holds true. In case your word as a dev should not be trusted. :)

(And who knows, maybe it does make a difference in that particular case.)

Code: Select all

Und wenn ein Forenbösewicht, was Ungezogenes spricht, dann hol' ich meinen Kaktus und der sticht sticht sticht.
  /l、 
゙(゚、 。 7 
 l、゙ ~ヽ   / 
 じしf_, )ノ 

dtpsprt
Posts: 2800
Joined: Wed, 6. Nov 02, 20:31
x4

Re: what compression system is the game using?

Post by dtpsprt » Sat, 21. Jan 23, 18:16

Tamina wrote:
Sat, 21. Jan 23, 17:34
...........

(And who knows, maybe it does make a difference in that particular case.)
If it does it surely has to do with a specific machine or configuration. If that is the case, nobody would expect Egosoft to put any dev time into configuring for certain configurations (even for mine aged but into specs computer).

User avatar
Tamina
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 4550
Joined: Sun, 26. Jan 14, 09:56

Re: what compression system is the game using?

Post by Tamina » Sat, 21. Jan 23, 19:51

yes

Code: Select all

Und wenn ein Forenbösewicht, was Ungezogenes spricht, dann hol' ich meinen Kaktus und der sticht sticht sticht.
  /l、 
゙(゚、 。 7 
 l、゙ ~ヽ   / 
 じしf_, )ノ 

jlehtone
Posts: 21809
Joined: Sat, 23. Apr 05, 21:42
x4

Re: what compression system is the game using?

Post by jlehtone » Sat, 21. Jan 23, 22:23

alexbalex11 wrote:
Sat, 21. Jan 23, 16:01
if u could shave of saving and loading time from 30 seconds to 10 seconds that would be great tho.
IF

What if change of compression algorithm can shave off only 0.00001 seconds? It seems to be so in X4.

Add to that that other people/programs do read the savegames too. Would you help them to switch
their algorithms?
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.

flywlyx
Posts: 976
Joined: Sat, 15. May 21, 03:45
x4

Re: what compression system is the game using?

Post by flywlyx » Sun, 22. Jan 23, 05:37

CBJ wrote:
Sat, 21. Jan 23, 17:01
That's why we've turned it on again by default for all those who had turned it off previously.
Is there any way to disable the save compression in the new beta version?

Post Reply

Return to “X4: Foundations”