Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi Guys,

 

I hold in my application a various of Graphics objcets:

Surfaces, Textures and Vertices.

 

Some of them are loaded to Pool.Default, some to .Managed and some to SystemMemory.

 

I also have some "non regular objects", like the BackBuffer Surface, and a Sprite object

 

After my device is lost, and i want to reset it, how do i know which objects are lost and i need to rebuild them or load them ???

 

I gues the backBuffer and sprite i need to rebuild, but what about the textures and surfaces??

 

Thanks, LDV.

Posted
If you're only concerned with device lost, then you only have to take care of objects in default memory pool. Objects like Sprite have their own methods that you should call when device is lost or reset (you'll find the right methods by their name).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...