From: "Jan D." <jan.h.d@swipnet.se>
Cc: Gerd Moellmann <gerd@gnu.org>, emacs-devel@gnu.org
Subject: Re: removing flickering in emacs
Date: Mon, 12 Dec 2005 11:39:30 +0100 [thread overview]
Message-ID: <439D5362.3050303@swipnet.se> (raw)
In-Reply-To: <m2fypqltyg.fsf@linux11.maruska.tin.it>
Michal Maruška wrote:
>Hello,
>I have written a patch for CVS emacs as a proof-of-concept for my method of
>removing flickering caused by using background (pixel or pixmap) of windows in
>X11, flickering which happens on Exposure, and on resizing.
>
>The method is described at
>
> http://maruska.dyndns.org/wiki/anti-flicker-method
>
>I don't know Xt, so I limit myself to xlib, and I tested the patch with
>./configure --with-x-toolkit=no --without-gtk (--with-png --with-jpeg --without-xim)
>
>
>I would appreciate comments from people who know the display code.
>
>
>The patch itself is:
>http://maruska.dyndns.org/comp/packages/cvs-emacs-flicker-free.patch
>
I find the patch hard to follow, there are too much #if 0 and code that
is commented out. But reading your anti-flicker-method page it seem that
the theory is to use window background None and explicitly write the
background yourself. I can not see how that would improve things,
instead of having the X server clear the background itself, you are
doing it from the client. This introduces more client to server calls
and no visible advantage.
You wonder about Gtk+ on you page. IMHO they have taken the proper
approach to flikering by using double buffering everywhere.
Unfortunately Emacs compiled for GTK can not use this feature, except
for menus, scrollbars and toolbars. But as a principle, double buffering
is easier to implement (no need to keep track of intersecting areas) and
is sure to remove flicker.
As a side not, I haven't seen much flicker in Emacs, and the time that
there where some, those places where bugs that has been fixed. Can you
supply a test case where flickering in Emacs can be clearly seen?
Jan D.
next prev parent reply other threads:[~2005-12-12 10:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 0:34 removing flickering in emacs Michal Maruška
2005-12-12 10:39 ` Jan D. [this message]
2005-12-12 13:31 ` gerd.moellmann
2005-12-12 15:15 ` Jan D.
[not found] ` <439D5362.3050303-j7nLG5G4Q1HLoDKTGw+V6w@public.gmane.org>
2005-12-12 15:26 ` Michal Maruška
2005-12-16 17:26 ` Jan Djärv
2005-12-12 19:12 ` Michal Maruška
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=439D5362.3050303@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=gerd@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).