Author Topic: RT 06/06/2004 Pcx compression to reduce memory requirements  (Read 4712 times)

0 Members and 1 Guest are viewing this topic.

Offline RandomTiger

  • Senior Member
  • 211
RT 06/06/2004 Pcx compression to reduce memory requirements
This build is intended for medium to low spec users who are having frame rate issues.

http://www.randomtiger.pwp.blueyonder.co.uk/freespace/fs2_open_r.rar

The -pcx2dds ('Compress pcx' as seen in launcher) flag will compress pcx images which will reduce texture memory.

Because this is a compressed format the image quality will reduce however paradoxically dxt is a 32 bit image format. So the pcx files are loaded as 32 bit which increases their quality over the default 16 bit quality and still takes up less space.

The likely result is that some things will look better and others will look worse. The compression is DXT5, if this isnt supported by your card this feature will not work. Only TNT (and possibly voodoo cards) cant do DXT5 as far as we know.

As a result of 32 bit loading and compression the loading process is likely to be slower.
« Last Edit: June 06, 2004, 07:09:47 am by 848 »

 

Offline Lightspeed

  • Light Years Ahead
  • 212
RT 06/06/2004 Pcx compression to reduce memory requirements
not if -pcx32 was used, anyway.

And this should be in one of Bob's decal/env/etc builds, as THATs where most of the people get slowdown problems. That would make most sense to test. :)
Modern man is the missing link between ape and human being.

 

Offline RandomTiger

  • Senior Member
  • 211
RT 06/06/2004 Pcx compression to reduce memory requirements
I've only just put it in so it wont be in Bob's builds till he updates.

 
RT 06/06/2004 Pcx compression to reduce memory requirements
Works fine on GeForce4 MX-440SE, DX9b.
Hud's target hull integrity indicator is out of alignment.
The hull number is at the top left of the screen.

Other than that, seems to run fine. It didn't like the anti-fighter beam fire much, though :D
I had a little drop there.

 
RT 06/06/2004 Pcx compression to reduce memory requirements
Ah, I'll be off 'til midnight (GMT -3) when I'll be at work.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
RT 06/06/2004 Pcx compression to reduce memory requirements
I updated last night, I was planning on commiting my changes this weekend, but with that engine failure bug, I wasn't sure if I should (allow us to relese a 3.6 patch) also when I comit my changes it will break OGL, as I've added a few changes to the way things work, though it's nothing as major as what I want to do, the biggest systematic change I probly made was the ability to render part of a vertex buffer, I also made the allocation functions for poly lists a member function seeing as this code was being reproduced about a half dozen times, and I changed n_prim to n_verts (within the poly list) and tryed to alter OGL code to suport this change, though I'm not sure how well that went.
« Last Edit: June 06, 2004, 01:10:30 pm by 57 »
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Turambar

  • Determined to inflict his entire social circle on us
  • 210
  • You can't spell Manslaughter without laughter
RT 06/06/2004 Pcx compression to reduce memory requirements
so how much faster does this wonderfully complex sounding stuff make the game for us d3d people?
10:55:48   TurambarBlade: i've been selecting my generals based on how much i like their hats
10:55:55   HerraTohtori: me too!
10:56:01   HerraTohtori: :D

 

Offline WMCoolmon

  • Purveyor of space crack
  • Moderator
  • 213
RT 06/06/2004 Pcx compression to reduce memory requirements
Quote
Originally posted by mrduckman
Works fine on GeForce4 MX-440SE, DX9b.
Hud's target hull integrity indicator is out of alignment.
The hull number is at the top left of the screen.

Other than that, seems to run fine. It didn't like the anti-fighter beam fire much, though :D
I had a little drop there.


That's probably my fault, I'll look into it.
-C

 

Offline RandomTiger

  • Senior Member
  • 211
RT 06/06/2004 Pcx compression to reduce memory requirements
Quote
Originally posted by Turambar
so how much faster does this wonderfully complex sounding stuff make the game for us d3d people?


I dont know, thats what I need tested.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
RT 06/06/2004 Pcx compression to reduce memory requirements
probly a good bit if you have an older card and (/or) are useing some of the ubber highres graphics, well actualy that last one probly won't as there all tga,
would would the complexity be of getting this to work for jpg and tga?
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline SA22C

  • 26
RT 06/06/2004 Pcx compression to reduce memory requirements
The PCX compression seems to work quite nicely and doesn't even increase load times that much. The build runs great for me, the only slowdown I experience now is related to particles.   In close pursuit of a fighter that is damaged and spewing particles, I experience MASSIVE slowdowns.  Is there anything I can do to improve this?

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
RT 06/06/2004 Pcx compression to reduce memory requirements
not yet, but Ihave a working solution and RT has had a few stabs at it as well
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline SA22C

  • 26
RT 06/06/2004 Pcx compression to reduce memory requirements
Quote
Originally posted by Bobboau
not yet, but Ihave a working solution and RT has had a few stabs at it as well


Well I'm sure you'll figure it out.  Thanks for the hard work, these .exe's really work great. :yes:

 

Offline JarC

  • 28
RT 06/06/2004 Pcx compression to reduce memory requirements
as to the use of low-end machines...having one myself I can vouch for the fact that simply octree converting all tga to pcx256 will already give a big boost, and coupled with -pcx32 it is not or almost not visually noticable, throw tga conversion in with this pcx compression and it may be even more, although the compression makes it look worse again...almost as ugly as using pcx without -pcx32.


soooo...why not use this runtime on tga's?
« Last Edit: June 07, 2004, 02:03:32 am by 106 »
Use the WiKi Luke
See You @ WIGGY's

 

Offline RandomTiger

  • Senior Member
  • 211
RT 06/06/2004 Pcx compression to reduce memory requirements
Quote
Originally posted by Bobboau
probly a good bit if you have an older card and (/or) are useing some of the ubber highres graphics, well actualy that last one probly won't as there all tga,
would would the complexity be of getting this to work for jpg and tga?


Its would be very simple to get dxt compression working on tga's and jpg's however as Lightspeed will testify it will ruin the quality of the image.

However for low spec users it might be worth it if it makes the game playable.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
RT 06/06/2004 Pcx compression to reduce memory requirements
well, it's a comand line argument, if you are that concerned about quality don't use it, also it might be good to have a high level interface in the code, like an extra parameter in bm_load so that the rest of us can take advantage of this more directly.
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Col. Fishguts

  • voodoo doll
  • 211
RT 06/06/2004 Pcx compression to reduce memory requirements
Cool, this gives a huge perfomance boost on my 64 MB Ti4200. No more fps crawling when facing capships that jumped in late in a mission (which was probably due to running out of graphic card memory)
*thumbs up*
"I don't think that people accept the fact that life doesn't make sense. I think it makes people terribly uncomfortable. It seems like religion and myth were invented against that, trying to make sense out of it." - D. Lynch

Visit The Babylon Project, now also with HTL flavour  ¦ GTB Rhea

 

Offline RandomTiger

  • Senior Member
  • 211
RT 06/06/2004 Pcx compression to reduce memory requirements
Im glad it has helped out :)

 

Offline SA22C

  • 26
RT 06/06/2004 Pcx compression to reduce memory requirements
Quote
Originally posted by RandomTiger


Its would be very simple to get dxt compression working on tga's and jpg's however as Lightspeed will testify it will ruin the quality of the image.

However for low spec users it might be worth it if it makes the game playable.


As a low-spec user, I wanted to take advantage of Lightspeed's new art, but didn't have the HP to deal with it all.  So I dissasembled the VP files and Lightspeed's releases and compressed them all to DDS myself.  There is a very definate quality loss, but even with the limitations of DDS, everything still looks much better than the stock art, especially his nebula releases.

I would welcome an automatic tga compression command line so I didn't have to convert all new releases myself.

 
RT 06/06/2004 Pcx compression to reduce memory requirements
-pcx2dds (something like that) should do that, at least for PCX.