从 Linux(Ubuntu 12.04)启动单人游戏时,我在控制台中收到以下错误
当我延迟任何逻辑的发生直到一定数量的游戏时间过去时,这个错误不会发生,但是必要的游戏时间量不断变化并且太长了。有什么方法可以解决此错误消息吗?
代码:初始化
public class Husk : Game
{
public GraphicsDeviceManager graphics;
public SpriteBatch regBatch;
public World world;
public static Texture2D pixel;
string title;
public Husk(string Title = "") // :base() seems to make the required elapsed time lesser.
{
title = Title;
graphics = new GraphicsDeviceManager(this);
HuskLib.Content.content = this.Content;
}
protected override void Initialize ()
{
regBatch = new SpriteBatch(graphics.GraphicsDevice);
Window.Title = title;
pixel = new Texture2D(graphics.GraphicsDevice, 1, 1);
pixel.SetData<Color>(new Color[1]{Color.White});
}
}
我没有在我的游戏中使用任何线程,它可以通过 Monogame 在外部完成