Re: improvement of index-calculation



Guenther Wimpassinger wrote:
....
> pCldFront : PDwordArray;
> iCloudDimXZ,iBitMaskY : Integer (private fields of the class).
>
> It is possible to pre-calculate ((iCloudDimXZ shl 1)-5) in the
> constructor of the class to another private field.

Sure. Simply convert iCloudDimXZ to a property and calculate that value in
SetiCloudDimXZ. And try to cache what you calculated, that's almost always
the best optimization.

Ralf


.