.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old September 24th, 2003, 09:18 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: about planet storage

Quote:
Originally posted by Taera:
whats 2^32? i mean, where the number comes from?
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).
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
  #2  
Old September 24th, 2003, 11:04 AM
Q's Avatar

Q Q is offline
Colonel
 
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
Q is on a distinguished road
Default 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
Reply With Quote
  #3  
Old September 24th, 2003, 11:57 AM
Karibu's Avatar

Karibu Karibu is offline
Sergeant
 
Join Date: Feb 2003
Location: Finland
Posts: 392
Thanks: 0
Thanked 0 Times in 0 Posts
Karibu is on a distinguished road
Default 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...
__________________
If you give a man a fish, he will eat a day;
But if you teach a man to fish, he will buy an ugly hat;
And if you talk about a fish to a starving man, then you're a consultant
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:29 PM.


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