Advertisement Jump to content
Sign in to follow this  

Vertex caching scheme

This topic is 4961 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
   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
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!