Add support for AVIF

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
alexman91
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon May 03, 2021 2:42 pm
Contact:

Add support for AVIF

Post by alexman91 »

please allow the game to use avif its much more efficient and smaller.
my mod folder is taking up 4gb of png files this can be reduced by 70% with avif.
there are batch apps to convert all png to avif lossless

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12043
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Add support for AVIF

Post by ssilk »

Doesn’t make much sense, because it needs to be unpacked when loading, which takes up some more time. Then it seems to be a non-loseless kind of compression which is bad , because in Factorio every pixel counts. And unpacked into memory the images have the same size, because that’s what’s done to make the graphics fast... I would mean the prize for 3 GB on your hard disk is much cheaper, than these disadvantages. ;)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1007
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Add support for AVIF

Post by ptx0 »

alexman91 wrote:
Mon May 03, 2021 2:47 pm
please allow the game to use avif its much more efficient and smaller.
my mod folder is taking up 4gb of png files this can be reduced by 70% with avif.
there are batch apps to convert all png to avif lossless
4gb of disk space is a problem? it is not 1998
My Mods - Fish Per Minute base size metric - Use your crashed spaceship as a belt balancer?
• • •
Base: Bob's @ 1 Million SPM
• • •
Linear search and overflows are indicative of sloppy coding practices.

coderpatsy
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Tue Apr 17, 2018 11:45 pm
Contact:

Re: Add support for AVIF

Post by coderpatsy »

ssilk wrote:
Tue May 04, 2021 6:36 am
Then it seems to be a non-loseless kind of compression which is bad , because in Factorio every pixel counts.
As mentioned in the OP, AVIF does have a lossless mode. I've no clue about unpacking time/memory so your other points probably still stand though.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12043
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Add support for AVIF

Post by ssilk »

Avif sucks hard for lossless compression.

See https://jakearchibald.com/2020/avif-has-landed/ (-> flat illustration)

If that’s all true, then lossless WebP seems to perform better. But for these 10-20% - I don’t know if that makes sense. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
ptx0
Smart Inserter
Smart Inserter
Posts: 1007
Joined: Wed Jan 01, 2020 7:16 pm
Contact:

Re: Add support for AVIF

Post by ptx0 »

ssilk wrote:
Wed May 05, 2021 2:15 am
Avif sucks hard for lossless compression.

See https://jakearchibald.com/2020/avif-has-landed/ (-> flat illustration)

If that’s all true, then lossless WebP seems to perform better. But for these 10-20% - I don’t know if that makes sense. :)
generally the tradeoff is in the size vs performance. better compression is going to be slower both in decompression and compression. so, you'll sacrifice load times.

overall a bad idea for no gains
My Mods - Fish Per Minute base size metric - Use your crashed spaceship as a belt balancer?
• • •
Base: Bob's @ 1 Million SPM
• • •
Linear search and overflows are indicative of sloppy coding practices.

Post Reply

Return to “Ideas and Suggestions”