Hey, I’m getting glitches on android 9 at only 20% cpu. The same app runs fine on an iPhone 4S…
I’m using getCpuUsage() to measure it. I’d love to profile better but the android studio profiling tools segfault my app
I saw this:
Is it really necessary to put in that load_stabilizer?
Without code/profiling it’s really hard to guess, maybe you could profile it in your development platform (Win/macOS) and you see where it bottlenecks the most. Also are you sure you aren’t making any gui/message calls inside your audio thread instead of using proper structures to communicate them? (i.e lockfree queues, value trees, etc).
I’d love to profile better but the android studio profiling tools segfault my app
That’s worrying. Are you by any chance able to share the app on github so I can pass this to the Android Studio team? Alternatively you can file a bug by going to Help->Submit feedback which will pre-fill the issue tracker with your host environment info.
I’m getting glitches on android 9 at only 20% cpu.
What device are you testing with? Also, are you using Oboe as the backend? There is a StabilizedCallback class inside Oboe which attempts to keep the CPU spinning inside the callback so that the governor doesn’t scale down the CPU frequency, is that what you’re referring to?