14.06.2011, 13:22
Thanks for the comments.
If I didn't use DBITS_VAR, the compiler gives a warning because that's like doing:
EDIT: I added the round up. Thanks.
There isn't support for 16-bit, like Double-O-Seven said. That's the reason of why it's slow.
Quote:
Very nice!
//Edit: To the speed comparator above: This is no WTF. 8-bit and 32-bit is already built in in PAWN, 16-bit not. So 16-bit needs some calculations and this takes time. //Edit 2: Why is there a DBIT_VAR? pawn Код:
pawn Код:
pawn Код:
pawn Код:
|
pawn Код:
if (1 == 1)
Quote:
Nice, but I ran a speed test and the results are that your bit system is slower than the normal 32-bit array system. (Maybe I made some mistakes)
Here's the script I used: http://pastebin.com/biN6NUC6 And the results are: Код:
8Bit: 115ms 16Bit: 768ms (wtf?) 32Bit: 107ms |