float[] → Vertex[] – decreases performance by 1000%
dennis luehring
dl.soluz at gmx.net
Thu Jul 26 23:08:32 PDT 2012
Am 26.07.2012 21:18, schrieb David:
>> Hm. Do you ever do pointer arithmetic on Vertex*? Is the size and
>> offsets are correct (like in Vertex vs float)?
>
> No, yes. I really have no idea why this happens, I saved the contents of
> my buffers and compared them with the buffers of the `float[]` version
> (thanks to `git checkout`) and they were exactly 100% the same.
> It's a mystery.
>
>
can you create a version of you code thats allows switching
(version(Vertex) else ...) between array and Vertex? or provide both
versions here again
you checked dmd and ldc output so it can't be a backend thing (maybe
frontend or GC) - or mysterious GL bugs
More information about the Digitalmars-d-learn
mailing list