Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!ncar!boulder!stan!stan!toml From: toml@ninja.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: GC: how many is too many? Message-ID: Date: 30 Nov 90 18:24:58 GMT References: <4509@titan.sw.mcc.com> <1990Nov28.222839.498@thyme.jpl.nasa.gov> Sender: news@Solbourne.COM Organization: Solbourne Computer, Inc. Lines: 25 In-Reply-To: kaleb@thyme.jpl.nasa.gov's message of 28 Nov 90 22:28:39 GMT In article <1990Nov28.222839.498@thyme.jpl.nasa.gov> kaleb@thyme.jpl.nasa.gov (Kaleb Keithley ) writes: >What is the maximum number of GC's that can be cached on X displays >on the Sun workstations and the DECstations? > >Is there an upper limit on the number of GC's that an X application >should reasonably create? > Toolkits such as Motif may have as many as a dozen GCs per widget; top shadow color, bottom shadow color, default font, foreground color, background color, etc. Multiply by the number of Widgets in a "typical" application; ours have > one hundred, then multiply by the number of applications running; two or three dozen. I haven't looked at the source for Motif but I would find this very suprising. The OI toolkit, which does a pretty good motif emulation has a grand total of 2 gc's (I think). -- Tom LaStrange Solbourne Computer Inc. ARPA: toml@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml Longmont, CO 80501