SFML community forums

Help => Graphics => Topic started by: Lolilolight on April 03, 2014, 09:08:12 pm

Title: Just a question.
Post by: Lolilolight on April 03, 2014, 09:08:12 pm
I've a question, why you pretransform vertices only when their size is 4 or less ?

Title: Re: Just a question.
Post by: zsbzsb on April 03, 2014, 09:08:58 pm
How can a vertice which is a single point have a size?
Title: Re: Just a question.
Post by: Laurent on April 03, 2014, 10:37:22 pm
Because it's the GPU's job to transform vertices. But when you have very few vertices to transform (<= 4 so I handle sprites) before changing the modelview matrix, it's sometimes more efficient to transform on the CPU and avoid changing the modelview matrix so often.
Title: Re: Just a question.
Post by: Lolilolight on April 04, 2014, 07:33:33 pm
Ok thanks for your answer. :)