Game Development Community

Memory Limits and TGBX Scene

by Sean T. Boyette · in Torque X 2D · 05/19/2007 (6:58 pm) · 1 replies

Are there any limits to the TGBX scene?
I created a scene with several animated sprites in the scene.

29 images with most of them being animations.
One was dropped onto the scene for reference.

When I run on the PC, it works flawlessly.
But when I deploy to the xbox, it crashes on this line:

SceneLoader.Load(@"data\levels\levelData1.txscene");

I get the following error:
An unhandled exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll

Any assistance would be great.. would love to see my work on the xbox.

Sean

#1
05/20/2007 (7:20 pm)
Answer:
There are limits to sprite width and height - probably limits on the xbox.
But do not try to load a 1302x1270 sprite.