MDX Using ThreadPool to Load Meshes from file - C++ pure virtual function call?
Hi.
I'm trying to speed up, or at least hide, the process of loading meshes from disk: Think of it as a very primitive way of faking LODs using different .x-files for each LOD.
Consequently I'm trying to call Mesh.FromFile as a Callback from ThreadPool.QueueUserWorkItem - however it seems to be getting into all kinds of mess. Sometimes it works. Sometimes it doesn't. The usual error is a C++ pure virtual function call from the bowels of DirectX itself...
My device is created as multithreaded, and nothing is attempted to be drawn until the mesh that I (try to) load is valid.
Can I even do this? If so, how?
Thanks,
benw

