• Touhou 6 New Classic Score Attack Ongoing!

    Read the submission rules, prizes and everything inbetween here:

    Good luck!

    Also check out the community art event here! Everyone is welcome!

I've reimplemented EoSD to web/mobile

That's amazing!
 
Yoo, that's cool!

I've noticed assets/audio has .mp3s. If you want to optimize for file size, I'd recommend seeing if you can make .opus work! I know thcrap can make use of ogg vorbis, flac, and mp3 audio, if that's relevant.
 
Hey, I checked the Github repo again, and I noticed the audio was switched to ogg opus! If you got the idea because of my suggestion, I'm happy to have contributed!

In the commit with the change, I noticed the comment: "- BGM is still the largest runtime asset class; it now uses Ogg/Opus to reduce load size."
It "might" help to re-encode some PNG images to a different format, like WebP or AVIF (or even JPEG-XL, though in Chrome/ium that isn't enabled by default, and in ordinary Firefox it'll be possible to enable in v152 or v153, which is a version or two away. I think Safari can use it by default, but without progressive decoding support). All of these formats have lossless modes. I'm just not sure if image decoding speed would be slower with those formats, and if it wouldn't be worth the reduction in filesize.
(I said "PNG" specifically because .jpg is lossy, and re-encoding them losslessly to another format would be detrimental for the filesize)
 
Last edited:
Hey, I checked the Github repo again, and I noticed the audio was switched to ogg opus! If you got the idea because of my suggestion, I'm happy to have contributed!

In the commit with the change, I noticed the comment: "- BGM is still the largest runtime asset class; it now uses Ogg/Opus to reduce load size."
It "might" help to re-encode some PNG images to a different format, like WebP or AVIF (or even JPEG-XL, though in Chrome/ium that isn't enabled by default, and in ordinary Firefox it'll be possible to enable in v152 or v153, which is a version or two away. I think Safari can use it by default, but without progressive decoding support). All of these formats have lossless modes. I'm just not sure if image decoding speed would be slower with those formats, and if it wouldn't be worth the reduction in filesize.
(I said "PNG" specifically because .jpg is lossy, and re-encoding them losslessly to another format would be detrimental for the filesize)
Good suggestion. Since not many people have been testing it, it’s difficult for me to identify issues that may occur on different networks, devices, or browsers.
 
Back
Top