Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: phill%MED-IMAGE.COMPSCI.BRISTOL.AC.UK@cunyvm.cuny.edu Newsgroups: comp.sys.sun Subject: Re: Pixrect help Message-ID: <8902181327.aa02255@kukini.CompSci.Bristol.ac.uk> Date: 1 Mar 89 20:03:32 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 13 Approved: Sun-Spots@rice.edu Original-Date: Sat, 18 Feb 89 13:23:49 GMT X-Sun-Spots-Digest: Volume 7, Issue 176, message 7 of 12 > I having trouble writing pixels on the screen from an unsigned char array. > pw_put works but is INCREDIBLY SLOW. I'm on a sun 4/260 Version 4.0. > Color Display. Are you using locking/batching - the appropriate one of these (which one depends on whether you are using retained or non-retained pixrects) causes *dramatic* speed increases. See pw_lock() & pw_batch_on()/pw_batch_off() in SunView Programmers' Guide. Phill Everson Medical Imaging Dept Comp Sci University of Bristol, UK