Tuesday, October 18, 2022
HomeGame Developmentopengl - Is it a good suggestion to detect collisions in 2D...

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


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

I found out that operating some type 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 wish to know if some type of collision detecting coroutine might be an applicable concept. Since there be just one such coroutine that can solely replace the parameters which might be despatched to render loop, I shouldn’t be dealing with too many issues with race circumstances. Nonetheless, I’m not certain that trendy 2nd video games use related approaches.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments