Re: Direct3D Dipose handling takes ages!
From: Tom Miller [MS] (tmiller_at_online.microsoft.com)
Date: Fri, 30 Apr 2004 10:51:03 -0700
Also, see my blog entry on this topic:
-- - Tom Miller, Managed DirectX This posting is provided "AS IS" with no warranties, and confers no rights. "Rich [Microsoft Direct3D MVP]" <email@example.com> wrote in message news:uJZJn6iLEHA.1052@TK2MSFTNGP12.phx.gbl... > [Please do not mail me a copy of your followup] > > "Tobias Mattsson" <sigget at europe dot com> spake the secret code > <uqyERlhLEHA.3052@TK2MSFTNGP12.phx.gbl> thusly: > >>Disposing Direct3D resources is taking alot of time in my app. I put >>together a little test that read in 1000 textures and created 250 vertex >>buffers and 250 index buffers, and then disposed it all, and disposing >>them >>took longer than creating them. Ive profiled it and found that >>BaseTexture.OnParentDispose is taking alot of time. We're talking several >>minutes on my system. > > Did you try disposing of them in the reverse order you created them? > -- > "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ: > <http://www.xmission.com/~legalize/book/> > Pilgrimage: Utah's annual demoparty > <http://pilgrimage.scene.org>