Hello! I was digging around online and heard something about multi-threaded game loops. Right now mine are single-threaded, and I wanted to know if multi-threading them is the way to go. And if it is, how would I do it? I’m using LWJGL and OpenGL, so only one thread at a time can own the OpenGL context. Anyways, here are my questions:
- How big of an impact on performance would multithreading my game loop actually give me?
- How would I begin to learn how to make multi-threaded game loops having only used single-threaded ones?
How many threads should I have? What should each of those threads do? etc, etc…
Also, on a sidenote, I’ve never really had enough textures loading at one time to need a loading screen, but if I did,
how would I load textures at the same time as the game loop running? (as only one thread can have OpenGL context at a time)
Thank you!