rettoph

Results 4 comments of rettoph

I'm 99% sure this is a result of `FlightGlobals.ActiveVessel.Autopilot.CanSetMode` not being thread safe. Even without any controllers plugged in, `KerbalSimpitAxisController::SASInfoProvider` gets invoked every ~Config.RefreshRate thanks to `KSPit.EventDispatchThread`. `KerbalSimpitAxisController::SASInfoProvider` will iterate...

Disregard that PR, the solution is not as simple as I thought

I've pushed 33a0a7e to my personal fork demonstrating a "working" fix for this issue. I assumed I could simply wrap `KerbalSimpitAxisController::SASInfoProvider` within `UnityMainThreadDispatcher.Instance()` and it would _just work_. Unfortunately as...

It also just occurred to me that passing `KerbalSimpitAxisController::SASInfoProvider` and `KerbalSimpitTelemetryProvider::RotationProvider` to `UnityMainThreadDispatcher.Instance()` kind of disregards the `EventDispatchThread` TimeSlice delay already, as the actual messages will be broadcasted back-to-back with...