Patzata Posted July 1, 2005 Posted July 1, 2005 Hello everybody :) I have one major problems. I developed an app that uses Direct3D. I use very simple objects, like Mesh.Sphere and Mesh.TextFromFont. My problem is that when I click the button for the animation to start (i simulate chemical reactions, using the spheres as the chemical elements) i can see in the Windows Task Manager, that the memory is going down every time i start new animation(for example - when i start my app the memory is about 300MB, and when I start many times the animations I even reached 10MB !!). I tried to dispose the meshes and to create them again every time I need to repaint the scene, but nothing really happens with that. I started a DX tutorial project, where there wasnt such a problem,(and there were spheres like in my app) but i could figured it out where is the difference between my project and the DX one. Can anyone help me solving this problem? THANK YOU very much!!! Best regards, Plamen Dimitrov Quote
Machaira Posted July 1, 2005 Posted July 1, 2005 Without seeing what you're doing I doubt we can help much. Quote Here's what I'm up to.
akuehn3000 Posted July 7, 2005 Posted July 7, 2005 Especially when using Mesh.TextFromFont you have to take care of disposing your Meshes. Another problem might also be that you are instancing a new font each time you use TextFromFont. If you do so, you also have to dispose that font. Of course without actually seeing the code I can just guess what might be the problem. Just check your loops again and see if you are really taking care and dispose ALL of resources you keep creating. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.