Optimising Nexuiz files

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Postby Ed » Fri May 19, 2006 8:12 am

CheapAlert wrote:progressive jpegs crash q3a engines too and choke the q3map compilers

This may well arise because not everything correctly handles JFIF. It is not that well standardised across different applications. My phone won't show black and white JPEG's for instance.

If it causes problems for level builders then it would be ebst to avoid progressive JPEG. Even so, all of the other optimisations should save 20Mb from the download.
Ed
Forum addon
 
Posts: 1172
Joined: Wed Mar 01, 2006 12:32 am
Location: UK

Postby xcooling » Fri Jun 23, 2006 11:37 am

ed would you mind forum posting or sending me the scripts.

(with progressive jpeg removed, i know from quake1 retexturing, progressive jpg's create a huge overhead).

I agree they should make a big difference, and a smaller download means players can download the game faster and get playing quicker.

Also not to mention the reduced resource usage.

Maybe the next release of nexuiz could be optimised, who knows.
xcooling
Newbie
 
Posts: 6
Joined: Fri Jun 23, 2006 5:24 am
Location: South Africa

Postby tChr » Fri Jun 23, 2006 11:39 am

What are you talking about. orogressive jpegs should not be smaller than baseline ones.. baseline optimized is another matter.
the spice extend life!
the spice expand conciousness!
the spice is vital to space travel!
sooooo.. tell me what you want, waht you really-really want
I will proceed directly to the intravenous injection of hard drugs, please.
tChr
Forum addon
 
Posts: 1501
Joined: Tue Feb 28, 2006 9:11 pm
Location: Trondheim, Norway

Postby xcooling » Fri Jun 23, 2006 12:39 pm

jpegtran -progressive -outfile $a $a #.prog $a


ie.
if you decide to post your shell script publically, post your shell script with that line removed
xcooling
Newbie
 
Posts: 6
Joined: Fri Jun 23, 2006 5:24 am
Location: South Africa

Postby Ed » Fri Jun 23, 2006 12:43 pm

@xcooling: AFAIK Nexuiz 2.0 did use a lot of these optimisations. Div0 implemented it I think. This is why Nexuiz 2.0 isn't that much bigger than 1.5 despite having a lot more stuff in it.

I'll try and post my Tinynex building script some time which uses all of this stuff. Right now I've got to work out how to convert TGA's to JPG's while getting rid of the .tga file extension.

Have a look at the TinNex 2.0 thread in Nexuiz > General for some other stuff like this.

@tChr: Baseline > Progressive is truly lossless and vice versa. Sometimes one can be smaller, sometimes the other. This is why I've done this:
Code: Select all
jpegoptim --strip-all --quiet $a   # Optimise JPEG's losslessly
jpegoptim --strip-all -m95 --quiet $a   # Cap JPEG's at m%
jpegtran -progressive -outfile $a $a
jpegoptim --strip-all --quiet $a   # Optimise JPEG's losslessly
jpegtran -progressive -outfile $a $a

This is confusing but as each jpegoptim process chooses the smallest file size, this will give the smallest JPEG whether it's baseline or progressive.

In my experience larger higher quality JPEG's are better in progressive form but when trying to make a Tinynex like build, it didn't help at all.
Ed
Forum addon
 
Posts: 1172
Joined: Wed Mar 01, 2006 12:32 am
Location: UK

Postby xcooling » Fri Jun 23, 2006 1:06 pm

progressive makes smaller files, but causes more cpu and game engine usage to handle and load the files.
xcooling
Newbie
 
Posts: 6
Joined: Fri Jun 23, 2006 5:24 am
Location: South Africa

Previous

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron