Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Regular Mesh - Vertex Array Disposal


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 PhillipHamlyn   Members   -  Reputation: 492

Like
0Likes
Like

Posted 20 October 2012 - 05:58 AM

I have a regular mesh (landscape tile) whose unique data is the heightmap as a 2D array of floats (or grayscale texture). When I create my Vertex Buffer I create an array of vertexes of the correct type and load them into the VB.

I know if I lose my device I will need to recreate my VBs; but other than that instance am I free now to clear off my original array of vertexes ? Do they get copied into the VB (an array is a reference type, but vertexes are value types - I'm using C#) or does the VB still hold a reference to my vertex array, preventing releasing of the memory resource of that array.

Thanks,

Phillip.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS