I'm pushing vizzy farther than I probably should by making a quadcopter flight controller. Every section of the program works in isolation, but with everything running at the same time the process takes too long to update, causing instability. I know the issue is because of update rate, because running the linked craft in slow-motion shows perfect stability.
I've already broken it up into multiple threads, but that made minimal difference compared to the version with one giant while() loop. How can I get Vizzy to run faster without just removing parts of it?
If you are on PC, install the Overload mod. Then, move your program into other part other than command pod/chip (cuz Overload can't save the xml of command pod/chip). Then click the part you put program in, click the "EDIT XML" button on the top of the menu. In "FlightProgram" section, you should find a property called "maxInstructionsPerFrame", change it to a larger number and your program should run faster.
edit:
Thanks for pinning my answer! If you are on mobile, you need to add this "maxInstructionsPerFrame" property to your craft's XML manually. Find the part's XML where you store your program (part id may help you find), then write maxInstructionsPerFrame="the number you want it to be" after FlightProgram.
Like this: <FlightProgram maxInstructionsPerFrame="30">