T.R | Title | User | Personal Name | Date | Lines |
---|
933.1 | What works for me | SDSVAX::SWEENEY | Gotham City's Software Consultant | Tue Jun 13 1989 09:38 | 9 |
| I'm not in a position to know from developing the server, I'm just a
programmer, but it's always seemed to me that writing to a pixmap and
then copying the pixmap to the screen was faster. Reading the image
from the screen back to the client is a very slow process.
If the client writes to a pixmap in the first place then the pixmap
becomes the backing store and pixels are not moving in the server =>
client direction.
|
933.2 | | VWSENG::KLEINSORGE | Toys 'R' Us | Tue Jun 13 1989 10:46 | 11 |
|
Pretty gross, and pretty unreliable. How is the user making sure that
the window hasn't been trashed in between the time he drew to it and
the time he does the read? Doing double writes to the pixmap and the
window sounds a lot more reliable.
One thing to remember about a read: It's synchronous. A image output
isn't unless you force a synch.
|
933.3 | | DECWIN::FISHER | Burns Fisher 381-1466, ZKO3-4/W23 | Tue Jun 13 1989 12:54 | 11 |
| On top of everything else, I'm pretty sure that ReadSubimage is always
going to be a terrible performer. Regular ReadImage would be better.
The reason is that XLIB has some very generic code to put the image from
the server into the image data structure. As I recall, it does it one
pixel at a time.
But Fred et al are right...this is NO way to do backing store. Write to
the pixmap and do copy area.
Burns
|
933.4 | Thanks, but . . . | ACESPS::WALTON | Dave | Wed Jun 14 1989 15:42 | 17 |
| Re: .1 , .2 , .3
Thanks for the quick and useful responses.
I talked to the customer and he seemed to be satisfied with the info I
passed on to him. He will probably take some of the advice. We
realize that what he's doing is pretty shakey, but that's because the
application is a non X application being ported to X and . . . Well,
its a long story.
Anyway, I still have one question. The customer seems to think it
takes about ten times as long to read from a window than to write to
it. Is this because of the synchronization or is the code perhaps just
more optimized for writing to a window.
Thanks again.
|
933.5 | | DECWIN::FISHER | Burns Fisher 381-1466, ZKO3-4/W23 | Mon Jun 19 1989 12:23 | 11 |
| Well, it is surely true that GetImage was and is not high on our list of
things to optimize in the server. Therefore, I would not be surprised if
it were slower. However, I could not say whether it would be 3 times slower
or not.
BTW, is the customer using ZMode or XY mode? I suspect that Z mode would
be faster for GetImage on a GPX system. There should be little
difference on a 1-bit monochrome system.
Burns
|