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

David d at dav1d.de
Thu Jul 26 03:14:24 PDT 2012


Ok, interesting thing.

I switched my buffer from Vertex* to void* and I cast every Vertex I get 
to void[] and add it to the buffer (slice → memcopy) and everything 
works fine now. I can live with that (once the basic functions are 
implemented it's not even a pain to use), but still, I wonder where the 
problem is.



More information about the Digitalmars-d-learn mailing list