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

Jonathan M Davis jmdavisProg at gmx.com
Tue Jul 24 15:18:42 PDT 2012


On Wednesday, July 25, 2012 00:12:19 David wrote:
> > This is strange. You said that you profiled the program and the extra
> > time spent is not in user code? Where is it spent then?
> 
> This is a damn good question. I tried to debug it manually with
> writefln's, it showed that glfwSwapBuffers needed the time (which, I
> looked it up, is just a wrapper around glXSwapBuffers). `perf` showed me
> nothing, the time was used in some unresolved calls.
> 
> I will make new tests with perf tomorrow.

dmd comes with a profile built into it. Just compile -profile, and you'll get 
profile information when you run your program.

- Jonathan m Davis


More information about the Digitalmars-d-learn mailing list