Home Game Development opengl – Is it a good suggestion to detect collisions in 2D recreation on totally different thread?

opengl – Is it a good suggestion to detect collisions in 2D recreation on totally different thread?

0
opengl – Is it a good suggestion to detect collisions in 2D recreation on totally different thread?

[ad_1]

I’m writing easy tiled map primarily based recreation utilizing LWJGL and Kotlin. I’m testing out totally different collision detection algorithms and keep away from utilizing out of field options for private causes.

I found out that operating some form of replace loop, checking the presence of collisions between some entity and all of the colliding objects could also be too heavy in future.

I need to know if some form of collision detecting coroutine shall be an applicable thought. Since there be just one such coroutine that may solely replace the parameters which are despatched to render loop, I shouldn’t be going through too many issues with race situations. However, I’m not certain that fashionable 2nd video games use related approaches.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here