home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Newsgroups: fj.mail-lists.x-window
- Subject: Re: new FAQ? (programming) masking Pixmaps *efficiently*
- Message-ID: <1992Dec22.222212.14844@sm.sony.co.jp>
- Date: 22 Dec 92 22:22:12 GMT
- Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
- Distribution: fj
- Organization: McGill Research Centre for Intelligent Machines
- Lines: 42
- Approved: michael@sm.sony.co.jp
-
- Date: 22 Dec 92 18:39:57 GMT
- Message-Id: <1992Dec22.183957.17710@thunder.mcrcim.mcgill.edu>
- Newsgroups: comp.windows.x
- References: <1g45bpINNavm@agate.berkeley.edu>, <1992Dec21.034512.18081@labtam.labtam.oz.au>
- Sender: xpert-request@expo.lcs.mit.edu
-
- In article <1992Dec21.034512.18081@labtam.labtam.oz.au>, graeme@labtam.labtam.oz.au (Graeme Gill) writes:
- > In article <1992Dec18.012904.15093@thunder.mcrcim.mcgill.edu>, mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
- >> In article <1992Dec15.152852.2528@miki.pictel.com>, oj@miki.pictel.com (Oliver Jones) writes:
- >>> In article <1992Dec11.180230.10091@elroy.jpl.nasa.gov> sns@bondi.jpl.nasa.gov (Sam Southard) writes:
- [These attribution lines have been corrupted; the next text is actually
- mine. I don't trust the rest all that much either...]
- >>>> The server in question is probably doing the common thing and
- >>>> converting clip-masks to rectangle lists.
- >> Yes...but the choice of this implementation means that clip-masks
- >> that don't decompose nicely into rectangles will be expensive to set
- >> and somewhat expensive to use.
- > The reason anything more sophisticated has been put in the "too hard"
- > basket (I guess) is that you basically would have to go around and
- > duplicate every piece of rendering code in the X server. You then
- > have to add an arbitrary bit clipping mask to one half of the
- > duplicated code on top of everything else [...]
-
- The unclipped case should be a trivial special case of the clipped
- case. Since the code already runs at memory bandwidth speeds on most
- machines, I am not convinced it's not worth doing.
-
- > There is no incentive for anyone to do this while very few
- > applications make use of an arbitrary bit mask. Application writers
- > will tend to avoid using arbitrary clipping masks because they know
- > they will be slow.
-
- Nobody uses it because it's slow; and it's slow because nobody works on
- it because nobody uses it.
-
- That sort of reasoning would have kept anyone from building X to begin
- with! More likely just nobody's felt up to bothering. Perhaps some
- long winter month when I have nothing else to do (ha!)....
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-