Skip to main content
GameDev.net gamedev.net
🔒 Locked

scene renderer

Started by JPulham Jan 5, 2009 at 2:02 PM 0 replies 750+ views
Original Post
JPulham
JPulham
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.