Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!husc6!spdcc!ima!esegue!johnl From: johnl@esegue.segue.boston.ma.us (John R. Levine) Newsgroups: comp.windows.x Subject: How expensive are GCs? Message-ID: <1990Oct19.020640.23141@esegue.segue.boston.ma.us> Date: 19 Oct 90 02:06:40 GMT Reply-To: johnl@esegue.segue.boston.ma.us (John R. Levine) Distribution: na Organization: I.E.C.C., Cambridge MA Lines: 11 I'm writing some X code that draws pictures in a moderate number of colors, most often six or eight. I realize that every X server is different, but are there any rules of thumb that say whether I'm better off making eight GCs for my eight colors, or using one GC and changing its colors with XSetForeground and XSetBackground? Both efficiency and style arguments would be interesting. -- John R. Levine, IECC, POB 349, Cambridge MA 02238, +1 617 864 9650 johnl@esegue.segue.boston.ma.us, {ima|spdcc|world}!esegue!johnl Atlantic City gamblers lose $8200 per minute. -NY Times