device reset error

I have created a manager to preload textures/meshes on startup I load all the meshes/textures into the manager, at this time there is about a 13 sec time laps before the app boots up and starts rendering my first screen, so I decided to run this on a different thread and start rendering my first screen on the main thread, when I do this I keep geting a reset error, im using C# and the sampleFramework in my app

any Ideas why this would be happening

thanks



Answer this question

device reset error

  • TheLokust

    To make sure that you aren't running into multithreaded issues with your device. Make sure that you have created your device with the CreateFlags.MultiThreaded flag. This will ensure that your device is thread safe. You will have to also check that you don't render before you have any textures.. or even resources loaded.

    I hope this helps.
    Take care.


  • Stéphane Beauchemin

    I guess u get the error when u load a resource while rendering ...

    normally i load 1 texture for splash screen and render it. Then load the other resources. While u load the resources, the splash will keep visible.

    U can also rerender the splash screen between loading each resource, this will make sure ure splash stays visible in case people use alt-tab or something while loading.

    If u have lots of resources, u can also change the splashes during the load.

    I think most games work this way, instead of multithreading the load process.

    Also for loading levels or something, update and re-render the loadscreen during the load instead of multithreading.


  • device reset error