61
Projects / Re: Physics example
« on: April 30, 2021, 06:27:54 am »Well, if I understand correctly, threads do not add speed on devices, but only transfer work to the background.I'm not entirely sure about this...
I believe you could off-load some heavy physics calculations on a seperate thread than the GL-thread.
When heavy calculations are done in the GL-thread, you might suffer from lower FPS due to reduced draw(...) call rates.
I think this might especially give speed boosts on multi-core processor devices (nearly all devices nowadays) which would handle multithreading better.
Though, making sure the threads are synced and working well together might be more complex...
jPCT(-AE)/OpenGL(ES) isn't entirely multi-thread friendly as far as I know.
Maybe @EgonOlsen knows more about this...