Re: [AD] X11 unresponsiveness |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Monday 12 July 2004 18:38, Elias Pschernig wrote:
> [Resent, sorry if it appears double now]
I tried sending messages to the mailing list several times during the
day... so far, they've only showed up once, so I think it will be ok ;)
> The attached patch makes all X11 programs (even expal, or the demo with
> page flipping) completely responsive. And in the demo, I see no change
> in FPS compared to before.
Sweet! I tested it locally and it works wonderful here too.
> There's a call to XLOCK protecting the input code, so there is no
> problem with thread safety after removing that if. My guess is, the
> removed line should maybe prohibit re-entrancy of the event handler
> itself, so a lot of input wouldn't cause lots of XLOCKs. If that's true,
> and it makes sense, we could add code for that again, but it should only
> block on the function itself then, not on all XLOCKs. I'm not sure at
> all though that's what it was for though.
Have you checked with the sigalrm version instead of the pthreads version
of the library? That may make a difference, but I'm not really sure.
Evert