[Openmcl-devel] getting CCL ready for CS graphics courses
ralex at cs.colorado.edu
Thu Jan 8 16:19:29 PST 2009
good call. On a 1.66Ghz PPC
(#_glVertex3f a b c) takes about 3 us
(defun glVertex3f (a b c)
(#_glVertex3f a b c))
(glVertex3f a b c) with glVertex3f not inline about 4 us
(glVertex3f a b c) with inline is back to 3 us
Oddly, my much faster Intel Mac runs this slower
That leaves, the unfortunately much harder, problem of finding a way
to generate the defun from the famework definition.
On Jan 8, 2009, at 10:48 AM, Stas Boukarev wrote:
> On Thu, Jan 8, 2009 at 8:33 PM, Alexander Repenning
> <ralex at cs.colorado.edu> wrote:
>> 1) define a function for each foreign function, e.g.,
>> (defun glColor3f (R G B)
>> (#_glColor3f R G B))
>> - not good: function call overhead
> Why not declare that function inline?
> With Best Regards, Stas.
Prof. Alexander Repenning
University of Colorado
Computer Science Department
Boulder, CO 80309-430
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel