Pages: [1]
  Print  
Author Topic: BPG  (Read 5010 times)
fromhell
Administrator
GET A LIFE!
**********

Cakes 31
Posts: 14481



WWW
BPG
« 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....
Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Marterzon
Half-Nub


Cakes 0
Posts: 56



« Reply #1 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.
Logged
grey matter
Member


Cakes 8
Posts: 381

>9k


« Reply #2 on: December 08, 2014, 06:19:42 pm »

What about the usual licensing/copyright/trademark issues?
Logged

This space is for rent.
andrewj
Member


Cakes 23
Posts: 571



« Reply #3 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)
Logged
fromhell
Administrator
GET A LIFE!
**********

Cakes 31
Posts: 14481



WWW
« Reply #4 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 Tongue  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
« Last Edit: February 03, 2015, 05:48:44 pm by fromhell » Logged

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
cheb
Lesser Nub


Cakes 2
Posts: 119



WWW
« Reply #5 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  Roll Eyes

Maybe best strategy is using uncompressed tgas and letting zlib handle the load ? Tongue
« Last Edit: April 09, 2015, 05:51:23 am by cheb » Logged

Imma lazy dreamer. I achieved nothing.
Pages: [1]
  Print  
 
Jump to: