Skip to Content.
Sympa Menu

texmacs-users - Re: Speed Problems with Xfree

Subject: mailing-list for TeXmacs Users

List archive

Re: Speed Problems with Xfree


Chronological Thread 
  • From: Stéphane Payrard <address@hidden>
  • To: address@hidden
  • Subject: Re: Speed Problems with Xfree
  • Date: Thu, 11 Sep 2003 22:09:57 +0200

Le Thu, Sep 11, 2003 at 07:48:39PM +0200, le valeureux mongueur Joris van der
Hoeven a dit:
>
> On Wed, 10 Sep 2003, Norbert Nemec wrote:
> > I don't think so. I have a fast machine with much memory. Anyway, I can
> > still
> > see that the TeXmacs window has to be redrawn at every desktop-switch.
> > Obviously, the window is not buffered.
> >
> > As far as I know from programming the Xlib a long time ago, there is a
> > simple
> > option to decide whether a window gets a background buffer or not. Using
> > such
> > a buffer might boost the screen diplay of TeXmacs quite a lot.
> > Unfortunately,
> > the user can't do much about this. It would have to be done in the source
> > code.
>
> Please take a look at line 115 of src/Window/X/x_window.cpp.
> I tried replacing the existing code by
>
> setattr.save_under = True;
> setattr.backing_store = Always;

Hi Joris,

I don't have currently a fast access to the net so I send a patch
for the version I have on my disk. This pach works
for me. That was probably part of some patches long lost patches
I had for X11. But I got discouraged by your reluctance to accept
patches... I don't have the patience of David.
Anyway, on Linux XFree /etc/X11/XF86Config may need the line
Option "BackingStore"
in the Device Section.
...Or /etc/X11/XF86Config-4 because X search there first.
X must be restarted for that change to
take effect.

Hope this helps.

--
stef



--- /u/stef/TeXmacs-1.0.1.17-src/src/Window/X/x_window.cpp 2003-06-27
17:45:59.000000000 +0200
+++ /usr/home/stef/TeXmacs-1.0.1.17-src/src/Window/X/x_window.cpp.new
2003-09-11 21:40:22.000000000 +0200
@@ -109,10 +109,11 @@
// cout << "Size computation required " << (texmacs_time ()-start_1) << "
ms\n";

// int start_2= texmacs_time ();
- unsigned long valuemask= CWOverrideRedirect | CWSaveUnder;
+ unsigned long valuemask= CWOverrideRedirect | CWSaveUnder |
CWBackingStore;
XSetWindowAttributes setattr;
setattr.override_redirect= (name==NULL);
- setattr.save_under = (name==NULL);
+ setattr.save_under = 1;
+ setattr.backing_store = Always;
if (win_w == 0) win_w= def_w;
if (win_h == 0) win_h= def_h;
if ((win_x+ win_w) > dis->display_width) win_x= dis->display_width- win_w;


>
> but nor "Save under" nor "Backing store" seem to work...
> Do you have any ideas?
>
> [Please continue the discussion in private or on texmacs-dev]
>



Archive powered by MHonArc 2.6.19.

Top of Page