Acnirak
22-11-2010 16:18:42
Hi, i have a code which draws some targets with variable settings, and i need draw them in runtime and convert to mesh,
but there is a problem:
when a setting has been changed by user i must re-draw a new mesh from manual object in runtime, there is no problem till yet but
when user does it frequently it gives this error:
![](http://img21.imageshack.us/img21/3950/dartlar.jpg)
i think maybe hardware buffer is overloading but i am not sure,
maybe i should draw them using directly hardwarebuffermanager?
Note:
after every new mesh creating i am clearing the old mesh and manualobject by using following code:
(Target is my manualobject)
Target.ConvertToMesh(MeshName);
Target.Clear();
_ManualObjectFactory.DestroyInstance(Target);
Mogre.MeshManager.Singleton.Remove(MeshName);
Mogre.MeshManager.Singleton.Unload(MeshName);
Mogre.MeshManager.Singleton.UnloadUnreferencedResources();
but there is a problem:
when a setting has been changed by user i must re-draw a new mesh from manual object in runtime, there is no problem till yet but
when user does it frequently it gives this error:
i think maybe hardware buffer is overloading but i am not sure,
maybe i should draw them using directly hardwarebuffermanager?
Note:
after every new mesh creating i am clearing the old mesh and manualobject by using following code:
(Target is my manualobject)
Target.ConvertToMesh(MeshName);
Target.Clear();
_ManualObjectFactory.DestroyInstance(Target);
Mogre.MeshManager.Singleton.Remove(MeshName);
Mogre.MeshManager.Singleton.Unload(MeshName);
Mogre.MeshManager.Singleton.UnloadUnreferencedResources();