[Haskell-cafe] Compiled program using OpenGL fails to trigger GPU switch on Mac, but works in GHCi
Brandon Allbery
allbery.b at gmail.com
Wed Mar 20 14:17:51 CET 2013
On Wed, Mar 20, 2013 at 9:02 AM, Jesper Särnesjö <sarnesjo at gmail.com> wrote:
> This solution seems to work perfectly for me. Since the foreign code
> is allowed to run uninterrupted, the GPU switch happens, and since the
> GUI actions stay on the main thread, the program's window responds to
> keyboard and mouse input correctly.
>
If that's correct, then I think you have found a bug in the GHC runtime: my
understanding is that the timers should be disabled while foreign code is
running, specifically to avoid confusing code that has no clue that there
is another runtime involved.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130320/31d2c9fe/attachment.htm>
More information about the Haskell-Cafe
mailing list