Git Product home page Git Product logo

Comments (4)

kortemik avatar kortemik commented on June 16, 2024

Friend of mine works with lrzip so I am familiar with lzs .. but might be
for another day. pk4 is the easiest for modders.

On Thu, Aug 27, 2015 at 5:31 AM, Anthony Gaudino [email protected]
wrote:

I remember I was searching about compression algorithms some time ago and
I found this one to be great https://github.com/Cyan4973/lz4 /
https://code.google.com/p/lz4/ it's very fast and was used in Battlefield
4 and many other software.

Do you think it would be a good addition to the engine?


Reply to this email directly or view it on GitHub
#15.

from discussions.

 avatar commented on June 16, 2024

I was also looking into the issue of compression when it comes to the texture formats. Currently I'm using Caesium, an open source image compression tool to compress PNG textures even more. There is a very small loss in image quality but it helps cut down on overall size. It cuts down around 30-50kb in size, on average almost half the size of the .tga textures used in Doom 3 when PNG is used.

from discussions.

DanielGibson avatar DanielGibson commented on June 16, 2024

lz4 makes sense for network packets and things like that which must be compressed and decompressed really fast, even if the compression ratio is not optimal.

zip (pk4) compresses better than that and is fast enough for us. and it has the huge advantage that everyone can easily create and access it, so it's definitely better for assets.

if I didn't care about ease of use, I'd probably suggest using lzham: https://code.google.com/p/lzham/ and https://github.com/richgel999/lzham_codec
It compresses better than zip and is about as fast for decompressing (compressing is a lot slower, but that's only done once anyway)

BTW, the loading times are already very good in the Doom3 BFG engine due to binary models etc (original doom3 was a lot slower because it used textbased formats which take longer to parse).

Also note that we don't yet have PK4 support, but I plan to do it in the future.

from discussions.

 avatar commented on June 16, 2024

I noticed today that saving out PNG from Inkscape gives an even smaller file size than Caesium. I've tested a texture set from Doom 3, the original size of the Diffuse, Specular and Normal maps was 2.28mb together, after Inkscape it came out as 888kb together with almost no loss in quality. Some textures go down to sizes of 4-11kb. It loads super fast in OTE.

from discussions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.