factorio-blueprint-editor icon indicating copy to clipboard operation
factorio-blueprint-editor copied to clipboard

Use WebP instead of PNG for spritesheets

Open teoxoy opened this issue 5 years ago • 2 comments

Firefox and Safari don't support it yet https://caniuse.com/#feat=webp

teoxoy avatar Nov 03 '18 17:11 teoxoy

I don't think it is worth it for sprites (it would not really save). It might be worth using for export of whole blueprint to WebP lossless, as it can save some space, but really not worth it either, because it is generated on the client anyway.

Also it does work fine in Firefox for me. I do not know when it was added, but it was added some time ago (I know it was not supported in Firefox few years ago). I do have custom big maps, and I recently converted it to use WebP tiles (10GB of it in PNG, about 7GB in WebP, each 256x256 pixels). It works fine in Chromium and Firefox (and not even the latest version, I think I am using Firefox 68esr).

Just my 2 cents.

baryluk avatar Nov 24 '19 17:11 baryluk

Yeah, it might not be worth it. It was a consideration because the entity spritesheet is quite large (8k texture) but I've been experimenting with ways to load entity sprites on demand instead of a huge static spritesheet.

teoxoy avatar Nov 28 '19 01:11 teoxoy