Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!SABER.COM!jimf From: jimf@SABER.COM Newsgroups: comp.windows.x Subject: Re: XPutImage() vs XDrawPoints() performance Message-ID: <9007171343.AA04691@lance> Date: 17 Jul 90 13:43:27 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 20 |If you have more than 30000 points to draw, XGet/PutImage() along with | XGet/PutPixel() is much better becuase you muck around with the | actual data locally and you blast the finished image over to the | server when you are done. A better rule-of-thumb might be that if you have more points than you can send in a single XDrawPoints command (circa 16000 for the stock R4 server I believe -- it was double that for R3 if I remember right), consider some other way. It doesn't take too many points to cause the per-point overhead to exceed what an image would use, so even this isn't too accurate. |Does having a huge image cause XGet/PutImage() to slow down | significantly so that XDrawPoints() becomes an attractive | alternative? Not unless it's a very *small* image in which case it doesn't really matter which way you go. jim