Re: Composite redraw speedup?

2020-02-16 Thread Egil Möller
On 12.02.2020 19:18, Alan Coopersmith wrote: > On 2/12/20 1:28 AM, Egil Möller wrote: >> However, for every PropertyNotify event, I still do a full round trip >> with XGetWindowProperty, with every XI_RawMotion I do XQueryPointer and >> with every XDamageNotify I do >>

Re: Composite redraw speedup?

2020-02-13 Thread Carsten Haitzler
On Thu, 13 Feb 2020 09:11:36 +0100 Michel Dänzer said: > On 2020-02-12 6:42 p.m., Carsten Haitzler wrote: > > On Wed, 12 Feb 2020 16:45:50 +0100 Michel Dänzer said: > > > >> On 2020-02-12 4:34 p.m., Carsten Haitzler wrote: > >>> On Wed, 12 Feb 2020 15:36:06 +0100 Michel Dänzer > >>> said: >

Re: Composite redraw speedup?

2020-02-13 Thread Michel Dänzer
On 2020-02-12 6:42 p.m., Carsten Haitzler wrote: > On Wed, 12 Feb 2020 16:45:50 +0100 Michel Dänzer said: > >> On 2020-02-12 4:34 p.m., Carsten Haitzler wrote: >>> On Wed, 12 Feb 2020 15:36:06 +0100 Michel Dänzer said: >>> On 2020-02-12 2:06 p.m., Carsten Haitzler wrote: > On Wed, 12

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Thu, 13 Feb 2020 02:01:58 +0500 "Alexander E. Patrakov" said: > On Thu, Feb 13, 2020 at 1:12 AM Carsten Haitzler wrote: > > > > On Wed, 12 Feb 2020 16:45:50 +0100 Michel Dänzer said: > > > > > On 2020-02-12 4:34 p.m., Carsten Haitzler wrote: > > > > On Wed, 12 Feb 2020 15:36:06 +0100 Michel

Re: Composite redraw speedup?

2020-02-12 Thread Alexander E. Patrakov
On Thu, Feb 13, 2020 at 1:12 AM Carsten Haitzler wrote: > > On Wed, 12 Feb 2020 16:45:50 +0100 Michel Dänzer said: > > > On 2020-02-12 4:34 p.m., Carsten Haitzler wrote: > > > On Wed, 12 Feb 2020 15:36:06 +0100 Michel Dänzer > > > said: > > > > > >> On 2020-02-12 2:06 p.m., Carsten Haitzler

Re: Composite redraw speedup?

2020-02-12 Thread Alan Coopersmith
On 2/12/20 1:28 AM, Egil Möller wrote: However, for every PropertyNotify event, I still do a full round trip with XGetWindowProperty, with every XI_RawMotion I do XQueryPointer and with every XDamageNotify I do XCompositeNameWindowPixmap/glXCreatePixmap/glXBindTexImageEXT... It seems to me it's

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 16:49:31 +0100 Egil Möller said: > > > You have some nasties - your input is going to have trouble due to zooming. > > the standard x input will be 1:1 where the windows are relative to the root > > window etc. :) > > Working around this is actually one of the main tasks my

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 16:45:50 +0100 Michel Dänzer said: > On 2020-02-12 4:34 p.m., Carsten Haitzler wrote: > > On Wed, 12 Feb 2020 15:36:06 +0100 Michel Dänzer said: > > > >> On 2020-02-12 2:06 p.m., Carsten Haitzler wrote: > >>> On Wed, 12 Feb 2020 13:23:28 +0200 Pekka Paalanen > >>> said: >

Re: Composite redraw speedup?

2020-02-12 Thread Egil Möller
> You have some nasties - your input is going to have trouble due to zooming. > the > standard x input will be 1:1 where the windows are relative to the root window > etc. :) Working around this is actually one of the main tasks my WM handles, and why it uses XI_RawMotion/QueryPointer - to be

Re: Composite redraw speedup?

2020-02-12 Thread Michel Dänzer
On 2020-02-12 4:34 p.m., Carsten Haitzler wrote: > On Wed, 12 Feb 2020 15:36:06 +0100 Michel Dänzer said: > >> On 2020-02-12 2:06 p.m., Carsten Haitzler wrote: >>> On Wed, 12 Feb 2020 13:23:28 +0200 Pekka Paalanen >>> said: >>> On Wed, 12 Feb 2020 11:07:56 + Carsten Haitzler

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 14:53:54 +0100 Egil Möller said: > > > EFL does. Evas (the canvas) does all the rendering (either in software or > > GL) and handles "native surfaces" which are its term of adopting things like > > pixmaps into the scene graph as objects. It glues in the EGL or GLX pixmaps >

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 15:36:06 +0100 Michel Dänzer said: > On 2020-02-12 2:06 p.m., Carsten Haitzler wrote: > > On Wed, 12 Feb 2020 13:23:28 +0200 Pekka Paalanen > > said: > > > >> On Wed, 12 Feb 2020 11:07:56 + > >> Carsten Haitzler wrote: > >> > >>> On Wed, 12 Feb 2020 12:40:15 +0200

Re: Composite redraw speedup?

2020-02-12 Thread Michel Dänzer
On 2020-02-12 2:06 p.m., Carsten Haitzler wrote: > On Wed, 12 Feb 2020 13:23:28 +0200 Pekka Paalanen said: > >> On Wed, 12 Feb 2020 11:07:56 + >> Carsten Haitzler wrote: >> >>> On Wed, 12 Feb 2020 12:40:15 +0200 Pekka Paalanen >>> said: >>> On Wed, 12 Feb 2020 10:21:02 +

Re: Composite redraw speedup?

2020-02-12 Thread Egil Möller
> EFL does. Evas (the canvas) does all the rendering (either in software or GL) > and handles "native surfaces" which are its term of adopting things like > pixmaps into the scene graph as objects. It glues in the EGL or GLX pixmaps > for > you, partial update (buffer age...) etc. It may not be

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 12:36:31 +0100 Egil Möller said: > > > hint: don't glXCreatePixmap() every time you render. do it only when you > > first start compositing a window (i.e. on map) and if the window > > resizes. ... > I tried this at first, but couldn't get it to work under Xephyr., i.e. >

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 13:23:28 +0200 Pekka Paalanen said: > On Wed, 12 Feb 2020 11:07:56 + > Carsten Haitzler wrote: > > > On Wed, 12 Feb 2020 12:40:15 +0200 Pekka Paalanen > > said: > > > > > On Wed, 12 Feb 2020 10:21:02 + > > > Carsten Haitzler (The Rasterman) wrote: > > > > > >

Re: Composite redraw speedup?

2020-02-12 Thread Egil Möller
> hint: don't glXCreatePixmap() every time you render. do it only when you first > start compositing a window (i.e. on map) and if the window resizes. ... I tried this at first, but couldn't get it to work under Xephyr., i.e. the image in the texture didn't update when the window changed. Any

Re: Composite redraw speedup?

2020-02-12 Thread Pekka Paalanen
On Wed, 12 Feb 2020 11:07:56 + Carsten Haitzler wrote: > On Wed, 12 Feb 2020 12:40:15 +0200 Pekka Paalanen said: > > > On Wed, 12 Feb 2020 10:21:02 + > > Carsten Haitzler (The Rasterman) wrote: > > > > > even better - if the /dev/dri/card0 > > > device exists, dlopen libdrm and get

Re: Composite redraw speedup?

2020-02-12 Thread Carsten Haitzler
On Wed, 12 Feb 2020 12:40:15 +0200 Pekka Paalanen said: > On Wed, 12 Feb 2020 10:21:02 + > Carsten Haitzler (The Rasterman) wrote: > > > even better - if the /dev/dri/card0 > > device exists, dlopen libdrm and get some symbols from it and ... use it to > > request the drm device sent you

Re: Composite redraw speedup?

2020-02-12 Thread Pekka Paalanen
On Wed, 12 Feb 2020 10:21:02 + Carsten Haitzler (The Rasterman) wrote: > even better - if the /dev/dri/card0 > device exists, dlopen libdrm and get some symbols from it and ... use it to > request the drm device sent you vsync events so you can use the vsync > interrupt > as your frame

Re: Composite redraw speedup?

2020-02-12 Thread The Rasterman
On Sat, 8 Feb 2020 15:46:36 +0100 Egil Möller said: > Hi! > > I have for a time now been working on a new composing window manager to try > out a few UX ideas (https://redhog.github.io/InfiniteGlass videos: > https://www.youtube.com/watch?v=vbt7qtwiLiM >

Re: Composite redraw speedup?

2020-02-12 Thread Egil Möller
On 11.02.2020 23:41, Adam Jackson wrote: > On Sat, 2020-02-08 at 15:46 +0100, Egil Möller wrote: >> Hi! >> >> I have for a time now been working on a new composing window manager >> to try >> out a few UX ideas (https://redhog.github.io/InfiniteGlass videos: >>

Re: Composite redraw speedup?

2020-02-11 Thread Adam Jackson
On Sat, 2020-02-08 at 15:46 +0100, Egil Möller wrote: > Hi! > > I have for a time now been working on a new composing window manager > to try > out a few UX ideas (https://redhog.github.io/InfiniteGlass videos: > https://www.youtube.com/watch?v=vbt7qtwiLiM >

Composite redraw speedup?

2020-02-08 Thread Egil Möller
Hi! I have for a time now been working on a new composing window manager to try out a few UX ideas (https://redhog.github.io/InfiniteGlass videos: https://www.youtube.com/watch?v=vbt7qtwiLiM https://www.youtube.com/watch?v=E8f2KwgvxK4). However, I'm having a performance problem in my redraw