mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
Revert "devdraw: disable XCopyArea optimization"
causes major performance regression when used over network
This reverts commit 5154e54d8b
.
This commit is contained in:
parent
c6897389f3
commit
8ee6884581
1 changed files with 2 additions and 5 deletions
|
@ -74,9 +74,7 @@ xdraw(Memdrawparam *par)
|
||||||
* If no source alpha and an opaque mask, we can just copy
|
* If no source alpha and an opaque mask, we can just copy
|
||||||
* the source onto the destination. If the channels are the
|
* the source onto the destination. If the channels are the
|
||||||
* same and the source is not replicated, XCopyArea works.
|
* same and the source is not replicated, XCopyArea works.
|
||||||
* This is disabled because Ubuntu Precise seems to ship with
|
*/
|
||||||
* a buggy X server that sometimes drops the XCopyArea
|
|
||||||
* requests on the floor.
|
|
||||||
m = Simplemask|Fullmask;
|
m = Simplemask|Fullmask;
|
||||||
if((state&(m|Replsrc))==m && src->chan==dst->chan && src->X){
|
if((state&(m|Replsrc))==m && src->chan==dst->chan && src->X){
|
||||||
xdst = dst->X;
|
xdst = dst->X;
|
||||||
|
@ -87,10 +85,9 @@ xdraw(Memdrawparam *par)
|
||||||
|
|
||||||
XCopyArea(_x.display, xsrc->pixmap, xdst->pixmap, gc,
|
XCopyArea(_x.display, xsrc->pixmap, xdst->pixmap, gc,
|
||||||
sp.x, sp.y, Dx(r), Dy(r), dp.x, dp.y);
|
sp.x, sp.y, Dx(r), Dy(r), dp.x, dp.y);
|
||||||
/* xdirtyxdata(dst, r); * /
|
/* xdirtyxdata(dst, r); */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If no source alpha, a 1-bit mask, and a simple source,
|
* If no source alpha, a 1-bit mask, and a simple source,
|
||||||
|
|
Loading…
Reference in a new issue