[FIXED] Splitting chunk data
#6
I've had a hunch that the GetNibble() and SetNibble() functions might be a bit faster on unsigned chars. So I tried it out, turns out there's no differrence at all. Weird, considering that the signed char version has a few more assembly instructions in the code, converting between signed and unsigned. One would expect that on millions of calls that would have matterred. Seems like my knowledge of the x86 processors is being deprecated by the new models.

Anyway, we can now choose between the signed and unsigned variant simply by defining the BLOCKTYPE typedef in ChunkDef.h
Reply
Thanks given by:


Messages In This Thread
[FIXED] Splitting chunk data - by xoft - 03-15-2012, 03:09 AM
RE: Splitting chunk data - by FakeTruth - 03-15-2012, 04:44 AM
RE: Splitting chunk data - by xoft - 03-15-2012, 05:14 AM
RE: Splitting chunk data - by FakeTruth - 03-15-2012, 05:46 AM
RE: Splitting chunk data - by xoft - 03-15-2012, 06:21 AM
RE: Splitting chunk data - by FakeTruth - 03-15-2012, 07:33 AM
RE: [FIXED] Splitting chunk data - by xoft - 03-15-2012, 07:26 AM
RE: [FIXED] Splitting chunk data - by xoft - 03-15-2012, 07:55 AM
RE: [FIXED] Splitting chunk data - by FakeTruth - 03-15-2012, 07:57 AM
RE: [FIXED] Splitting chunk data - by xoft - 03-15-2012, 08:02 AM



Users browsing this thread: 1 Guest(s)