the profile is becoming a bit of a cpu hog

Lubomir I. Ivanov neolit123 at gmail.com
Wed Jan 7 15:55:18 PST 2015


On 8 January 2015 at 01:29, Lubomir I. Ivanov <neolit123 at gmail.com> wrote:
> // populate the LUT
> for (int i = 0; i < count; i++) {
>    ...
>    // *
>    ...
>    int idx = pI.sec / count;
>    lut[idx][0] = mean;
>    lut[idx][1] = x;
>    lut[idx][2] = y;
> }
>

*cough*

that's quite broken as idx should be continues while the 'time' value
to be extracted is based on 'count'.
but i hope you get the idea...

<hides in shame>

lubomir
--


More information about the subsurface mailing list