mistigrii33
30-10-2011 21:20:46
Hi,
I'm making a labyrinth game, and for that purpose, i create a body for each wall of each case of my labyrinth.
The way i create a wall is the following one :
When i deal with 10x10 labyrinth, i have a maximum of 10x10x4=400 body which represents each walls of the labyrinth, i haven't any performance problems.
But when i have a 25x25 labyrinth, my computer is really lagging when the camera is looking at these walls.
How can i solve this problem ?
I think about creating a ManualMesh, which represents all the labyrinth's wall.
About this solution, i don't understand how this NxOgre::ManualMesh works. I haven't found ressources which show how to use it, so if someone can give me some advice, it could be nice.
Thanks !
I'm making a labyrinth game, and for that purpose, i create a body for each wall of each case of my labyrinth.
The way i create a wall is the following one :
Body* boxBody = mRenderSystem->createBody(boxDesc, Vec3(posX, posY, posZ), "cube.mesh", bodyDesc);
When i deal with 10x10 labyrinth, i have a maximum of 10x10x4=400 body which represents each walls of the labyrinth, i haven't any performance problems.
But when i have a 25x25 labyrinth, my computer is really lagging when the camera is looking at these walls.
How can i solve this problem ?
I think about creating a ManualMesh, which represents all the labyrinth's wall.
About this solution, i don't understand how this NxOgre::ManualMesh works. I haven't found ressources which show how to use it, so if someone can give me some advice, it could be nice.
Thanks !