OpenArena Message Boards

OpenArena Contributions => Idea pit => Topic started by: fromhell on December 07, 2014, 09:35:47 am



Title: BPG
Post by: fromhell on December 07, 2014, 09:35:47 am
http://bellard.org/bpg/

It's like JPEG in that it's lossy, but also supports an alpha channel and has far cleaner quantization for less obnoxious artifacts.

I haven't tried it with the OA content yet as a size test but it looks very promising.  Don't know about loading times however....


Title: Re: BPG
Post by: Marterzon on December 07, 2014, 11:23:58 am
http://bellard.org/bpg/

It's like JPEG in that it's lossy, but also supports an alpha channel and has far cleaner quantization for less obnoxious artifacts.

I haven't tried it with the OA content yet as a size test but it looks very promising.  Don't know about loading times however....

You should at least try it out and see the benefits and problems.


Title: Re: BPG
Post by: grey matter on December 08, 2014, 06:19:42 pm
What about the usual licensing/copyright/trademark issues?


Title: Re: BPG
Post by: andrewj on December 15, 2014, 08:27:43 pm
Sounds good, and supports non-lossy images too.

Hopefully it gets some traction (always hard to shift the "just good enough" incumbents)


Title: Re: BPG
Post by: fromhell on February 03, 2015, 05:45:37 pm
I did a compression test on OA088 data unpacked sans sound and got it from 308mb zipped to 132mb zipped.  It's particularly effective with skyboxes.

Though that's no use if the engine doesn't load BPGs yet :P  though shouldn't be hard to hook up libbpg up like any other... I might try doing that. I'm really curious of the load times


Title: Re: BPG
Post by: cheb on April 09, 2015, 05:48:33 am
The image library is probably the biggest contributing factor.

Modern hard drives can load all the pk3s into memory in 1 or 2 seconds.

When I fed OA PK3s to my own game engine for benchmarking, it showed that:
a). paszlib is *fast*, 40 megabytes per second on an i5. And that's with range checking on! I believe the original zlib would be even faster

b). the vast majority of the loading time went to image library decoding images or resampling them down for mipmaps.

So, how fast is libbpg compared to whatever OA is using for jpegs and pngs?

Imma curious  ::)

Maybe best strategy is using uncompressed tgas and letting zlib handle the load ? :P