Jump to content
  • Advertisement
Sign in to follow this  
JPulham

scene renderer

This topic is 3631 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.

GameDev.net 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!