From: Aja H. <aja...@gm...> - 2013-05-31 16:20:23
|
Hi Stephen, I got another 4% speed-up (2 simulations / sec faster) by a simple change: make all the table sizes of TAI as power of 2, i.e. ourBallMaskTable[4][4][320] => ourBallMaskTable[4][4][512] ourDisabledMaskTable[640] => ourDisabledMaskTable[1024]; ourPlayerPositionResetWhenTable[8][160][160] => ourPlayerPositionResetWhenTable[8][256][256] .... Maybe you would be interested to do it in the current code. Kind regards, Aja Huang |