Jump to content
  • Advertisement
Sign in to follow this  
JPulham

scene renderer

This topic is 3544 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 have scene nodes pushed into my renderer by my spatial partitioning structure, which then needs to be sorted by render state, shader etc. My questions are: a ) what structure to use? a linked list or an array. using a preallocated block for either could save on allocation time (pooled memory), but would the cache misses really be that much of a performance drop in linked lists? b ) what sorting algorithm is best for these situations? I was thinking either a simple quick sort or some kind of temporary binary tree into an array. What are your thoughts? Cheers.

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!