Re: [cl-opengl-devel] slow interpolation issues

2013-03-11 Thread cage
On Sun, Mar 10, 2013 at 06:24:34PM -0500, Bart Botta wrote: Hi, thank you for your reply! [...] > Most of the problem is https://github.com/3b/cl-opengl/issues/27 (glaref > and (setf glaref) are slow). > > Another problem is that the compiler doesn't know what types the values > are, so has to

Re: [cl-opengl-devel] slow interpolation issues

2013-03-10 Thread Bart Botta
On Sun, Mar 10, 2013 at 8:35 AM, cage wrote: > (defun lerp-gl-array (a b c count interpolation-factor) > (dotimes (i count) > (setf (gl:glaref c i) > (alexandria:lerp interpolation-factor (gl:glaref a i) (gl:glaref b > i) > > is this my fault? Any idea how can I improve performanc

[cl-opengl-devel] slow interpolation issues

2013-03-10 Thread cage
Hello, I have written an MD2 3d mesh loader, everything works fine except for the animations. Because the model save only the key frame for each animation the loader must interpolate the vertex position of the mesh to get a smooth animation. My solution was to save the triangles ver