开发者

too many polygons : XNA Framework Reach profile does not support 32 bit indices

when i try to load a big map, 开发者_如何学运维the screen gets all black and frozen and when i ctrl-alt-delete it i found the following error : " XNA Framework Reach profile does not support 32 bit indices. Use IndexElementSize.SixteenBits or a type that has a size of two bytes. " . Any ideas ?


Change from the XNA Reach profile to the XNA HiDef profile.

Here is a list of the differences.

And here is an explaination of how to switch between the two.

Alternately:

If you are loading models, use models with fewer polygons.

Or, if you are using the IndexBuffer class directly, construct your instances with IndexElementSize.SixteenBits or typeof(short) (depending on which constructor you use).


Yes. Do not put all that maps on the screen at the same time. That simple. Not in one batch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜