Raised This Month: $ Target: $400
 0% 

Another efficiency questoin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-08-2012 , 20:03   Re: Another efficiency questoin
Reply With Quote #4

Here's a good read to get started.

Firstly, they can only be used for booleans. In a single 32-bit cell you have 32 booleans. You can easily stretch it beyond that using an array and some shifting trickery. Read through the tut I posted, it covers most of what you'll need to know.

Edit: Let me re-phrase, you have 32 booleans to work with in a single cell. You can also store other values but you're limited to the number of bits needed to represent the value.

ie.
32 numbers ranging from 0-1
16 numbers ranging from 0-3
8 numbers ranging from 0-15
4 numbers ranging from 0-255
2 numbers ranging from 0-65535
__________________

Last edited by Bugsy; 08-08-2012 at 20:11.
Bugsy is offline
 



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 Off

Forum Jump


All times are GMT -4. The time now is 05:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode