#47404 - QuantumDoja - Fri Jul 08, 2005 4:29 pm
Hi, please bear with me as i try to explain.
I have a cube, and I want to store 4 things about the cube,
Its x Length,
Its y Length,
Its z length,
Its ID.
I could save this information as (for example) "15,15,15,1" so "x,y,z,ID"
but, Would it be better to stuff the information into a 32 bit integer, thus reducing the file size???
as in, it would then become:
and i could save that in a 32 bit integer and take out the bits i required?? Whereas saving as "15,15,15,1" i would have to use 4 variables?
_________________
Chris Davis
I have a cube, and I want to store 4 things about the cube,
Its x Length,
Its y Length,
Its z length,
Its ID.
I could save this information as (for example) "15,15,15,1" so "x,y,z,ID"
but, Would it be better to stuff the information into a 32 bit integer, thus reducing the file size???
as in, it would then become:
Code: |
00001111000011110000111100000001 |
and i could save that in a 32 bit integer and take out the bits i required?? Whereas saving as "15,15,15,1" i would have to use 4 variables?
_________________
Chris Davis