Gloss programs should be compiled with -threaded, otherwise the GHC runtime
will limit the frame-rate to around 20Hz.

The performance of programs using this interface is sensitive to how much
boxing and unboxing the GHC simplifier manages to eliminate. For the best
result add INLINE pragmas to all of your numeric functions and use the following
compile options.