bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/26486] Graphics.fillRect extremely slow


From: fitzsim at redhat dot com
Subject: [Bug awt/26486] Graphics.fillRect extremely slow
Date: 6 Mar 2006 18:40:30 -0000


------- Comment #7 from fitzsim at redhat dot com  2006-03-06 18:40 -------
The gdk_flush calls are there for a reason.  The AWT allows applications to
make graphics calls from any thread but GDK prefers that all painting be done
in the main thread.  Where that's not the case the app must explicitly call
gdk_flush after calling the paint routines, otherwise painting won't be done
on-screen until the end of the current gdk main loop iteration.

Simply removing the gdk_flush calls would cause AWT apps that do animation
painting in a separate thread to produce very choppy animations.  See
http://oneslime.net/ for example.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26486





reply via email to

[Prev in Thread] Current Thread [Next in Thread]