1381
DF Suggestions / Re: Water height & movement
« on: November 21, 2008, 10:01:08 pm »
Oh? Memory usage? the smallest int programming variable is 0-255 if I recall correctly so, it could still use 1 to 70 easily.
But as for memory usage... Say there are 5000 tiles of water... if they used 8 bits for 0-255 they would use 20k of memory. if they used 0-65000 they would use 16 bit Int varibles which would use 40k of memory...
My machine currently has 2,000,0000k of memory.. so it could in theory hold 500,000 dwarf forts water usages in memory if each one had 5000 tiles of water.... my current fort has about 100 tiles of water so it would need 200 bytes of memory to store water depth information...
I cannot see memory use being a valid argument as the dwarf fortress process currently uses 185,492,000 bytes of memory I don't think 185,492,100 will hurt anything, but if for some reason it did, there is still plenty of room to do a 0 to 70 or 0 to 140 system.
But as for memory usage... Say there are 5000 tiles of water... if they used 8 bits for 0-255 they would use 20k of memory. if they used 0-65000 they would use 16 bit Int varibles which would use 40k of memory...
My machine currently has 2,000,0000k of memory.. so it could in theory hold 500,000 dwarf forts water usages in memory if each one had 5000 tiles of water.... my current fort has about 100 tiles of water so it would need 200 bytes of memory to store water depth information...
I cannot see memory use being a valid argument as the dwarf fortress process currently uses 185,492,000 bytes of memory I don't think 185,492,100 will hurt anything, but if for some reason it did, there is still plenty of room to do a 0 to 70 or 0 to 140 system.