Hi Johannes,
I'm porting a guitar multi FX o wrote of osx to axoloti. The code is bit too much to post here. The method above just sets some feedback level for the reverb and is called at krate.
The thing is, occasionally I get the 0% cpu after i have made some very minor change in code, which could not possibly cause any problems by itself.
I added some logging at initialization which is working normally, but when I get the "0%" none of the logging is printed to the console either, so maybe the patch isn't started somehow. But there are no compile errors and the console says:
Done compiling patch
Start uploading patch
bin path: /Volumes/Intern/Users/fokke/Documents/axoloti/build/xpatch.bin
block uploaded @ 0x20011000 length 12980
Done uploading patch
Start starting patch
Done starting patch
Start locking
Done locking
which makes me think everything is fine. Maybe the patch the patch is too big ? (perhaps unlikely at 12980 bytes). Could it be some kind of exception is happening?
Is there a way to turn on some more verbose logging?
I mentioned in that setting set using -O2 rather than -O2 seems to solve the problem. But know i've changed that to
-O2 -finline-functions -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fvect-cost-model -ftree-partial-pre -fipa-cp-clone
(which according to the gcc manual should do the same thing as -O3) And the patch runs fine (although is now only 9612 bytes) .....so i am a bit confused here.
Of course editing the Makefile is not really a permanent solution, and I don't think it actually fixes the real problem.