[HOpenGL] GlxGears

Shawn P. Garbett listman at garbett.org
Mon Mar 22 17:03:20 EST 2004


On Sunday 21 March 2004 6:31 am, Sven Panne wrote:
> I wrote:
> > [...] It runs with 7162 FPS now, which is only 0.03% slower than
> > the C version! :-)
>
> A small note: After a hint from SimonM, I've just made some minor
> performance tweaks to the OpenGL package (making some constructor
> fields strict and letting GHC unbox them automatically). The Haskell
> version is now *exactly* as fast as the C version.

I ran it on slow hardware, and got faster (just slightly) frame rates in 
Haskell than in C. All with the new version having 20% less code than 
C.

Shawn


More information about the HOpenGL mailing list