LibGDX示例游戏推力直升机滞后 [英] LibGDX example game Thrust Copter lags

查看:80
本文介绍了LibGDX示例游戏推力直升机滞后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了 LibGDX游戏开发基础知识书,在这里您可以找到Thrust Copter游戏示例.问题是,如果您运行这款游戏,当您看着星星或障碍物时,只会看到很小的滞后,请仔细看.有人可以解释一下为什么会这样吗?因为我在做游戏,并且在这个问题上也有类似的问题,所以当我绘制和移动对象时,我会看到滞后现象.谢谢!

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!

推荐答案

我大概发现了为什么会这样.在此处中描述并解决了该问题.从数组中删除经过迭代的对象会导致最小的滞后.

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.

这篇关于LibGDX示例游戏推力直升机滞后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆