Page 2 of 2

Re: [applied] Vertex cache optimization

Posted: Tue Mar 27, 2012 9:35 am
by REDDemon
oh yes :) I had that snippet in my 1.7.3 version because I added it from trunk

Re: [applied] Vertex cache optimization

Posted: Tue Mar 27, 2012 1:15 pm
by hendu
REDDemon wrote:you have that method in mesh manipulator (should be present in irrlicht 1.7.3 and in last trunk).
have anyone tried to apply the algorithm for sort similiarly textured vertices? (similiar textcoordinates). in theory that should improve also performance.. or not?
No, I don't think drawing similarly textured vertices together would improve performance. Maybe I misunderstood you?

Also, please post your numbers, if you've used it ;)

Re: [applied] Vertex cache optimization

Posted: Tue Mar 27, 2012 4:23 pm
by REDDemon
I was just asking.. In theory also textures are cached. :)

Re: [applied] Vertex cache optimization

Posted: Thu Apr 05, 2012 8:10 am
by Steel Style
REDDemon wrote:have anyone tried to apply the algorithm for sort similiarly textured vertices? (similiar textcoordinates). in theory that should improve also performance.. or not?
I'm not sure to understand your question but I think you are pointing the meshbuffer optimisation (one mesh buffer by texture and by the way prevent from switching textures over and over).
Because otherwise I don't think that same textcoordinates may apply to cache optimisation.

Re: [applied] Vertex cache optimization

Posted: Thu Apr 05, 2012 2:54 pm
by REDDemon
No no i speaking about textcoordinates. Or is texture caching so fast that this don't really matters if optimized or not? that was just a question ^^

Re: [applied] Vertex cache optimization

Posted: Thu Apr 05, 2012 3:39 pm
by hendu
You can't reasonably affect the texture caches via vertex order, every gpu is different and draws pixels in its own groupings.

What you can do is have as large areas as possible using nearby pixels, this would help the texture cache.

Re: [applied] Vertex cache optimization

Posted: Thu Apr 05, 2012 6:45 pm
by REDDemon
ok thx :)