Changes between Version 58 and Version 59 of WikiStart


Ignore:
Timestamp:
Jan 4, 2013, 3:56:43 AM (12 years ago)
Author:
Ben Lippmeier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v58 v59  
    4545A2: Try installing gloss to use the GLFW window manager interface instead of GLUT: `cabal install gloss --flags="GLFW -GLUT"`
    4646
     47'''Q: Animations seem jerky.'''[[br]]
     48A: Make sure you're compiling with {{{-O2 -threaded}}}. Without the threaded runtime, the code that manages the frame rate will behave badly. This is because GHC takes too long to reschedule the gloss process after the sleep timer has expired. With the threaded runtime, most simple animations should run at about 100fps, which is our internal frame-rate cap.
     49
    4750'''Q: On Windows, when I try to run a gloss program it says `user error (unknown GLUT entry glutInit)`.'''[[br]]
    4851A1: You need to install `glut32.dll`. Copy it into `\Windows\System32` (for 32-bit installs) or `\Windows\SysWOW64` (for 64-bit installs). Alternatively, you can just copy it into the same directory as the `Main.exe` executable you are trying to run.
    4952
    50 '''Q: Animations seem jerky.'''[[br]]
    51 A: Make sure you're compiling with {{{-O2 -threaded}}}. Without the threaded runtime, the code that manages the frame rate will behave badly. This is because GHC takes too long to reschedule the gloss process after the sleep timer has expired. With the threaded runtime, most simple animations should run at about 100fps, which is our internal frame-rate cap.
     53'''Q: On Windows, how do I turn off the console window when the Gloss program runs?''' [[br]]
     54A: Pass GHC the flag `-optl-mwindows` when compiling the program. At runtime, if your program tries to write to `stdout` or `stderr` then Windows will kill the process.
    5255
    5356'''Q: The window doesn't reshape properly under Xmonad.'''[[br]]