sys_optimize() bug?

Pierre Alexandre Tremblay's icon

Dear all

When I put this in my dsp routine,

    post("dsp on");
    post("sys_optimize() = %i", sys_optimize());

I would expect to see this printed when my optimise switch is set to
on in my dsp status window

    dsp on
    sys_optimize() = 1

and

    dsp on
    sys_optimize() = 0

when it is set to off.

In fact, it stays to 1 all the time (and the altivec perf is always
called...) Am I doing something wrong?

Here are my specs:
powerbook G4 1.67GHz 1 Gig ram
Mac OS 10.4.8
Max/MSP 4.6.2
XCode 2.4.1 using the latest UB dev tools