StaticMesh count
Posted: Mon Dec 24, 2012 3:11 pm
HI!
I've a strange yussue: in my app the FPS starts correctly at 60 just as i set. every time i load a new level it become lowest. I think wrong something in the load/unload scene...
this is the unload (~)
my questions:
1----------------------------
like for entityes, are some same for the staticmeshes too? ex..:
for (int i = 0;i<space.staticMeshes.count;i++)
{space.remove(space.staticMesces)}
2-----------------------------
are good the expressions to delete all in space and the space:
space = null;
space = new Space();
very thanks!
I've a strange yussue: in my app the FPS starts correctly at 60 just as i set. every time i load a new level it become lowest. I think wrong something in the load/unload scene...
this is the unload (~)
Code: Select all
Content.Unload();
mContentXAll.Unload();
mComponentsXAll.Clear();
for (int i = 0;i<space.entityes.count;i++)
{space.remove(space.entityes[i])}
1----------------------------
like for entityes, are some same for the staticmeshes too? ex..:
for (int i = 0;i<space.staticMeshes.count;i++)
{space.remove(space.staticMesces)}
2-----------------------------
are good the expressions to delete all in space and the space:
space = null;
space = new Space();
very thanks!