Answer the question
In order to leave comments, you need to log in
What is the best way to implement a particle system in Java?
Using the LibGDX framework, I made a lot of particles through Array according to the principle
www.libgdx.ru/2013/09/simple-game.html
However, on weak devices, drawdowns occur every couple of seconds due to the garbage collector.
We need a different particle algorithm in order to initialize the array only once at the start of the game, and then twist it.
Here I am interested in the algorithm how to manage such an array.
Answer the question
In order to leave comments, you need to log in
Regular means of libgdx ?
In general, libgdx has special recommendations and implementations of basic things for working with memory, incl. special pools.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question