Replies: 1 comment 9 replies
-
I switched the JS engine to Hermes, tried to optimize React code, but neither solved this. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'd like to share and discuss a problem we have met in the previous project.
Goal
At NovoNotes, we made a spatial audio plugin.
Our plugin requires to render multiple components on the source position change. (knobs and 2D plot which we call "pan area")
The parameters are
x, y, z
, which are stored in APVTS.Problem
When parameters and components have a one-to-one relationship, the knob moves smoothly.
But they lose the smoothness when components increases.
One knob, one parameter
Three knobs, one parameter
Six knobs, one parameter
Here is the time profiler log of XCode Instruments. The first run is the one knob example, the second is the 3 knobs one, and the third is the 6 knobs one. All of them indicate very high CPU usage, but not so different as it looks.
The test code looks like this.
Our workaround
We have written native components in C++ and injected APVTS via its constructor.
Question
How can I solve this without writing native components?
Beta Was this translation helpful? Give feedback.
All reactions