This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: OpenGL and the LinuxThreads pthread_descr structure
- From: Gareth Hughes <gareth dot hughes at acm dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com, dri-devel at lists dot sourceforge dot net
- Date: Thu, 16 May 2002 16:48:47 -0700
- Subject: Re: OpenGL and the LinuxThreads pthread_descr structure
- References: <3CE4359C.2030209@acm.org> <20020517011847.I11265@sunsite.ms.mff.cuni.cz>
Jakub Jelinek wrote:
> Hi!
>
> What percentage of applications use different dispatch
> tables among its threads? How often do dispatch table changes
> occur? If both of these are fairly low, computing a dispatch table
> in an awx section at dispatch table switch time might be fastest
I should also point out that display list compilation and playback is
another place where the dispatch table changes (typically, you have at
least a dispatch table for regular immediate mode, display list
compilation and display list playback). One of the ugliest things about
the Microsoft Windows implementation of OpenGL is that the driver
backend must call a function to register a new dispatch table, and the
OpenGL library then makes several copies of this table internally.
Being able to switch dispatch tables with a single pointer reassignment
makes it easy to do very powerful optimizations.
-- Gareth