.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   about planet storage (http://forum.shrapnelgames.com/showthread.php?t=10398)

Narrew September 24th, 2003 05:00 AM

about planet storage
 
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

Re: about planet storage
 
probably 2^32, but i don't really know.

Taera September 24th, 2003 07:07 AM

Re: about planet storage
 
whats 2^32? i mean, where the number comes from?

narf poit chez BOOM September 24th, 2003 07:22 AM

Re: about planet storage
 
2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x2x 2x2x2x2x2x2

i might be off by a x2 or x2x2. gives you 4294967296

Jack Simth September 24th, 2003 09:18 AM

Re: about planet storage
 
Quote:

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

Re: about planet storage
 
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

Re: about planet storage
 
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...


All times are GMT -4. The time now is 12:19 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.