float[] → Vertex[] – decreases performance by 1000%

David d at dav1d.de
Tue Aug 28 05:56:58 PDT 2012


Am 28.08.2012 01:53, schrieb Sean Kelly:
> On Aug 24, 2012, at 1:16 PM, David <d at dav1d.de> wrote:
>>
>> That's not the problem. The problem has nothing to do with the tessellation, since the *rendering* is also 1000% slower (when all data is already processed).
>
> Is the alignment different between one and the other? I would't think so since it's dynamic memory, but the performance difference suggests that it might be.
>

The arrays are 100% identical (I dumped a Vertex()-array and a raw 
float-array, they were 100% identical).


More information about the Digitalmars-d-learn mailing list