At the moment, the UI is being rendered on the same thread as rendering. The main issue here is that performance may decrease as one thread does lots of UI-specific work such as clipping, layout calculations, etc. This will then directly affect other rendering operations such as the actual world.
So the plan should be to create a separate thread just for the UI and only once all calculations have been completed, to return to the main thread so that the frame can be created.
At the moment, the UI is being rendered on the same thread as rendering. The main issue here is that performance may decrease as one thread does lots of UI-specific work such as clipping, layout calculations, etc. This will then directly affect other rendering operations such as the actual world.
So the plan should be to create a separate thread just for the UI and only once all calculations have been completed, to return to the main thread so that the frame can be created.