Using Makie.jl multithreaded

I am using Julia for a 6DOF vehicle simulation which is just fast enough to run in real-time. After performing a simulation I am visualising the results using Makie.jl.
To demo the simulator I have modified it to accept control input from a USB controller, this is currently working and working in real-time too. When visualising the results afterwards this is able to happen in real time. (To clarify, I mean that one second of simulation time is equal to one second of real time). What I haven’t been able to do (nicely) is have both of these at the same time. There isn’t quite enough overhead so that the visualisation and simulation can occur simultaneously. I have some ideas on how to make it work, notably to run the visualisation in another thread. Does anyone know if that is possible?

6 Likes