Jump to content
  • Advertisement
Sign in to follow this  
Opwiz

Vertex caching scheme

This topic is 4805 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on a 3d engine and currently designing/implementing the renderer. I've got an idea about a vertex caching scheme and want to hear what you think. The idea is that the renderer automaticly takes care of the caching of vertex data in vertex buffers when geometry is drawn. A queue keep information about eached cached vertex data. The pseudo code for drawing a geometry might look like:
if vertex data is cached
   bubble buffer information in queue one step to the back
else
   if vertex buffer full
      remove vertex data from the buffer that is drawn infrequently (information 
      about those found at the front of the queue)

   put vertex data in buffer
   put buffer information at the back of the queue

draw vertex data from buffer

What do you think?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!