Re: Input event reduction
- From: Stefan Salewski <mail ssalewski de>
- To: Nicola Fontana <ntd entidi it>
- Cc: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: Input event reduction
- Date: Thu, 30 Mar 2017 10:46:55 +0200
On Thu, 2017-03-30 at 09:38 +0200, Stefan Salewski wrote:
Currently I wonder if the call of gtk3.mainIteration() inside the
idle
function is possible and if it would help updating the display. In my
first draft of the Nim toy chess I used something like this
while gtk3.eventsPending(): discard gtk3.mainIteration()
Yes, that has an effect, it seems to allow GUI redraw, but keyboard
input remains sluggish. If I add additional a sleep() function call
keyboard seems to react better. But of course that is no real solution,
so I have to test the thread idea next.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]