Blueprint file size reduction

View previous topic View next topic Go down

Blueprint file size reduction

Post by tsunamayo on Thu Dec 22, 2016 10:37 am

So I did a first round of optimization regarding blueprint file size, here are the gains on a few ships :

Le Saint Just : 106 kb  -> 27 kb -> 4x factor
Alouette :       52 kb   -> 8 kb -> 6.5x factor
Freighter :      121 kb  -> 24 kb -> 5x factor
Tsunami :       35 kb   -> 7 kb -> 5x factor

As it was an optimization on the block data structure, the less brick a ship have the bigger the impact is.
Now the good thing is I can do the same optimization for the brick, and also pack my 96 bits vector3i into 16 bits, so there will more gains in the future !

This is cool for very big ship, as being 3d object a ship of twice the dimension have 8 time bigger size (on paper, in reality it should be less because of compression as people tend to reuse the same brick).
This is also a good news for networking as we send this info over the network when a new player joins.

Now there will be no impact on your current construction : when I give you the new build simply load your ship, then save and they will be adapted to the new format.

tsunamayo
Admin

Posts : 173
Join date : 2016-12-16

View user profile http://skywanderers.forumjap.com

Back to top Go down

Re: Blueprint file size reduction

Post by Remitorm Darkwind on Thu Dec 22, 2016 5:53 pm

time to grab the new version again be nice if there was some sort of auto updater or something
avatar
Remitorm Darkwind

Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom

View user profile

Back to top Go down

Re: Blueprint file size reduction

Post by Remitorm Darkwind on Thu Dec 22, 2016 5:59 pm

nvm looks like its not released yet really need to learn to read the posts and not skim them
avatar
Remitorm Darkwind

Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom

View user profile

Back to top Go down

Re: Blueprint file size reduction

Post by tsunamayo on Thu Dec 22, 2016 10:15 pm

Yeah it is not released, actually I am in middle of big refactoring of the block id logic for the paint system. I will do a post on it, new system will be more logical, and you will be able to paint all the blocks as you want (so no crappy color different for all the hull block)

tsunamayo
Admin

Posts : 173
Join date : 2016-12-16

View user profile http://skywanderers.forumjap.com

Back to top Go down

Re: Blueprint file size reduction

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum