我用XNA提供的模板 建立一个 SpaceWar
编译通过了...

运行的时候出现

this.GameComponents.Add(this.graphics);
这句话发生
NoSuitableGraphicsDeviceException
怎么回事呢?? 

 

有人说我的显卡不支持但是我玩魔兽,CS,三国无双等游戏的时候都没有问题.很流畅.

我已经安装了Microsoft DirectX SDK (August 2006)

最后到XNA的官方上看了一下.找到了解决方法.

构造graphics之后

加上

graphics.AllowMultiSampling = false;

看来还是我的显卡的问题,
不管了.先凑合着玩一下

相关文章:

  • 2022-01-01
  • 2022-02-15
  • 2021-07-25
  • 2021-12-12
  • 2022-01-25
  • 2021-12-13
  • 2021-11-11
  • 2021-11-25
猜你喜欢
  • 2022-01-27
  • 2021-10-02
  • 2022-03-02
  • 2022-01-02
  • 2021-07-01
  • 2022-01-03
  • 2022-01-01
相关资源
相似解决方案