Always redraw the screen using a blit from the backbuffer.
commit79f8378827becac265f5cd3a3327ab79a2c8befc
authorPeter Clifton <pcjc2@cam.ac.uk>
Sat, 15 Dec 2007 13:31:39 +0000 (15 13:31 +0000)
committerPeter Clifton <pcjc2@cam.ac.uk>
Sat, 15 Dec 2007 13:31:39 +0000 (15 13:31 +0000)
treee93718196dc7d2ecc42c02bf7046233a15a653f4
parent33e12c8916f6b3bcd2d0df2246ef925e7b25b0dd
Always redraw the screen using a blit from the backbuffer.

The previous redraw scheme which would draw to the screen concurrently
with drawing to the backbuffer is proving to be a bottle-neck to recent
desktops using compositing. Every draw we make forces the X server to
compute a damaged region and re-composite the window.

We now draw only into the backbuffer, and then invalidate the extents of
the region we've drawn.
19 files changed:
gschem/include/prototype.h
gschem/src/a_zoom.c
gschem/src/o_arc.c
gschem/src/o_basic.c
gschem/src/o_box.c
gschem/src/o_bus.c
gschem/src/o_circle.c
gschem/src/o_cue.c
gschem/src/o_grips.c
gschem/src/o_line.c
gschem/src/o_net.c
gschem/src/o_picture.c
gschem/src/o_pin.c
gschem/src/o_select.c
gschem/src/o_text.c
gschem/src/x_basic.c
gschem/src/x_event.c
gschem/src/x_grid.c
gschem/src/x_stroke.c