Home » Stars! 2.6/7 » The Academy » Planet value calculation made easy!
Re: Planet value calculation made easy! |
Tue, 02 October 2007 17:36 |
|
yartrebo | | Petty Officer 3rd Class | Messages: 43
Registered: July 2006 Location: North America | |
|
Quote: | It's true that bitpacking code increases EXE size. However, compressed strings also decrease the size.
|
You can reduce both string size and EXE size by using generic compression such as bz2 or zip. Most compression algorithms handle extra 0s very easily and the bitpacking will do little to increase compression.
The compression will slow down the opening of the file a bit, but it will neither bloat the codebase nor impose tight constraints the way bitpacking does.
I am using some bitpacking the stars! clone I'm writing, but it is limited to places where it will not impose restrictions such as storing all LRTs in a 32-bit dword, where performance will be equal to or faster than using separate variables, and where the code bloat will be marginal. For the LRT examples, it's faster than using a bunch of 8-bit bytes since 8-bit operations are very slow, doesn't need as much RAM (speeding up cache performance), and can be tested in two machine operations (and bitfield, mask[IFE]; jnz), which is as fast as if I spent a whole 32-bits for each trait (xor lrt[IFE], 0x0; jnz).
[Updated on: Tue, 02 October 2007 17:38] Report message to a moderator
|
|
|
|
|
Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: sirgwain on Wed, 23 March 2005 12:56
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: sirgwain on Wed, 23 March 2005 15:54
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: ConstB on Fri, 08 April 2005 01:27
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: ConstB on Sat, 09 April 2005 12:44
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kotk on Sat, 09 April 2005 13:15
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kotk on Sat, 09 April 2005 15:03
|
|
|
Re: Planet value calculation made easy!
By: Ptolemy on Sat, 09 April 2005 15:25
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: LEit on Thu, 14 April 2005 14:09
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kotk on Sat, 09 April 2005 15:02
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: yartrebo on Tue, 02 October 2007 17:36
|
|
|
Re: Planet value calculation made easy!
By: regiss on Wed, 03 October 2007 16:45
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kelzar on Mon, 17 November 2008 14:52
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kelzar on Tue, 18 November 2008 07:42
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kelzar on Tue, 18 November 2008 19:31
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kelzar on Tue, 18 November 2008 22:23
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: XAPBob on Wed, 10 April 2013 05:05
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: XAPBob on Fri, 12 April 2013 02:41
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kelzar on Wed, 19 November 2008 10:33
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: Kelzar on Wed, 19 November 2008 12:39
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: XAPBob on Fri, 12 April 2013 07:29
|
|
|
Re: Planet value calculation made easy!
By: craebild on Fri, 12 April 2013 11:59
|
|
|
Re: Planet value calculation made easy!
By: XAPBob on Fri, 12 April 2013 12:40
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: XAPBob on Fri, 12 April 2013 18:58
|
|
|
Re: Planet value calculation made easy!
|
|
|
Re: Planet value calculation made easy!
By: leonidas on Sat, 13 April 2013 06:33
|
|
|
Re: Planet value calculation made easy!
|
Goto Forum:
Current Time: Mon Jun 10 17:13:43 EDT 2024
|