Dynamic array and OpenGL problem
Mikko Ronkainen
mikoro at iki.fi
Mon Jan 14 04:07:55 PST 2008
Now when I got it working I'm thinking about speeding things up a bit. Few questions:
ubyte[] getFramebuffer() { return framebuffer; }
Does D pass it around as a reference?
And now I'm zeroing the framebuffer like this:
for(int i=0; i<(width*height*3); ++i)
framebuffer[i] = 0;
Is there more speedier way to just zero the memory? This takes most of the time in the rendering loop...
Thanks!
More information about the Digitalmars-d-learn
mailing list