LibGDX example game Thrust Copter lags

南笙酒味 提交于 2019-12-11 00:22:57

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!