View Full Version : about planet storage
Narrew
September 24th, 2003, 05:00 AM
is there a max amount that your empire can store min/org/rad? I am getting alot, and am still building storage facilities but wondered if there is a MAX (code max).
narf poit chez BOOM
September 24th, 2003, 05:33 AM
probably 2^32, but i don't really know.
Taera
September 24th, 2003, 07:07 AM
whats 2^32? i mean, where the number comes from?
narf poit chez BOOM
September 24th, 2003, 07:22 AM
2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x 2x2x2x2x2x2
i might be off by a x2 or x2x2. gives you 4294967296
Jack Simth
September 24th, 2003, 09:18 AM
Originally posted by Taera:
whats 2^32? i mean, where the number comes from?<font size="2" face="Verdana, Helvetica, sans-serif">It is the number of values a 32 bit integer (the type most computers use) can take on; for an unsigned integer, the minimum value is 0, the maximum value is (2^32) - 1 = 4294967295; for a signed integer, the minimum value is -2147483648 (-(2^31)), and the maximum value is 2147483647 ((2^31) - 1).
Q
September 24th, 2003, 11:04 AM
All I know is that in the current game I just passed 100'000'000kT storage of minerals without complaints from my computer http://forum.shrapnelgames.com/images/icons/icon12.gif
Karibu
September 24th, 2003, 11:57 AM
For those who wan to know why integer length is exactly 32 bit, not 91782 bit:
The 32 bit limit for integer comes from current CPU 32 bit architecture. It means that registers (tiny memory slots) in CPU core are 32 bits length and programming Languages are made to use those registers as effectively as possible so 32 bit is limit for normal integer and it can fit into one registry. There are limited amount of registeries in core, so if it takes more than one registry to storage the number in runtime, it slows code running tiny bit (but 8463 such variable in a program would have noticeable effect).
Of course, this will change in few years when CPu's based on 64 bit architecture comes into market. AMD just published it's first 64 bit processor. If SEV or SEVI is done based on that architecture, I believe there will be no crashes when having combats of 10000+ ships in PBW server...
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.