问题
I have read LibGDX Game Development Essentials book and there you can find Thrust Copter game example. Problem is if you run this game you will see little lags when you look at the stars or obstacles, just look carefully. Can somebody explain me why is this happening? Because I am making a game and I have a similar problem with this issue, when I drawing and moving objects I can see lags. Thanks!
回答1:
I probably found out why this is happening. The problem is described and solved here. Removing objects from the Array which is iterated through causes mini lags.
来源:https://stackoverflow.com/questions/33457558/libgdx-example-game-thrust-copter-lags