Hello there,
I am new to Java game development and am working on my first game. I came across your Thread Library after searching how to fix stutter issues. Right now I have a variable timestep loop setup but my game still stutters occasionally. I was wondering if separating game logic from rendering in separate threads would help my problem. Could you show me how you would go about doing that with your library? Is that even a good idea?
Thanks.
No, sorry. Like Gimbal said, the problem is most likely something else. This library just allows you to cram out (a lot) more performance from multicore CPUs. This library is more flexible than just separating rendering and updating into different threads. It allows you to do task level parallelism, for example:
Render terrain Update objects
in graphics thread (3 threads)
| | | |
| | | |
| Update AI Handle collisions
| | | |
| | | |
| | | |
| | | |
Render all objects after all other tasks complete
|
|
|