teoxoy / factorio-blueprint-editor

A feature-rich Factorio Blueprint Editor
https://fbe.teoxoy.com
MIT License
299 stars 61 forks source link

Use WebP instead of PNG for spritesheets #11

Open teoxoy opened 5 years ago

teoxoy commented 5 years ago

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

baryluk commented 4 years ago

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.

teoxoy commented 4 years ago

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.