[3ddesktop-dev] Patch to reduce memory consumtion

Hi!

This is basically the patch I have sent to Brad some time ago:

        -it reduces the memory consumption by freeing the imlib-objects after 
the image-transformations are done (saves ~10MB at 1024x1024 texturesize)
        -it makes use of texture-compression, when you put "compression 1" into 
your 3ddesktop.conf. That will save you about 16MB at the default texsize.
        -it corrects a bug regarding the desktop-acquiry: With --acquire=X and 
X>99, 3ddeskd didn't actually acquire anything, but hung. I found the bug to be 
in config.hpp, where acquire was initialised with
int acquire : 1;        , instead of just 
int acquire;    (or maybe even "long"?) 

The patch is against version 0.2.5 and runs really well on my box. Would be 
interesting to hear how texture-compression performs on slower boxes.


        Toph

Other related posts: