Package: gliv
Version: 1.9.1-1
Severity: normal

gliv seems to always use 128x128 textures.  This unfortunately makes
rendering slow on certain systems (such as a Radeon 9000 chip or a $99
GeForce).  The large # of small texture tiles seems to bog down the
card.

There is code in gliv's src/gl_widget.c to query OpenGL for the maximum
texture size, but this is commented out by a preprocesor directive and
is replaced by code to default the texture size to 128x128.

If I reenable to maximum texture detection, gliv runs much better on the
above mentioned graphics cards (performance jumps from approx. 1 frame
per second to undetectably fast).

The following patch reenables maximum texture detection:

--- gliv-1.9.1/src/gl_widget.c  2004-09-06 15:49:18.000000000 -0400
+++ gliv-1.9.1-dt/src/gl_widget.c       2005-02-09 12:47:02.000000000 -0500
@@ -215,7 +215,7 @@

 static void get_max_texture_size(void)
 {
-#if 0
+#if 1
     glGetIntegerv(GL_MAX_TEXTURE_SIZE, &rt->max_texture_size);
 #else
     rt->max_texture_size = 128;

My worry is that the preprocessor directive must have been put in for a
good reason (and it has been present in gliv for quite a few revisions),
and there must be some important cases in which using the maximum
texture size is unacceptable.  I would hate to advocate breaking gliv
for others in order to fix it for me.


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gliv depends on:
ii  libatk1.0-0              1.8.0-4         The ATK accessibility toolkit
ii  libc6                    2.3.2.ds1-20    GNU C Library: Shared libraries an
ii  libglib2.0-0             2.6.1-3         The GLib library of C routines
ii  libgtk2.0-0              2.4.14-2        The GTK+ graphical user interface
ii  libgtkglext1             1.0.6-2.0.1     OpenGL Extension to GTK (shared li
ii  libice6                  4.3.0.dfsg.1-10 Inter-Client Exchange library
ii  libpango1.0-0            1.8.0-3         Layout and rendering of internatio
ii  libsm6                   4.3.0.dfsg.1-10 X Window System Session Management
ii  libx11-6                 4.3.0.dfsg.1-10 X Window System protocol client li
ii  libxmu6                  4.3.0.dfsg.1-10 X Window System miscellaneous util
ii  libxt6                   4.3.0.dfsg.1-10 X Toolkit Intrinsics
ii  xlibmesa-gl [libgl1]     4.3.0.dfsg.1-10 Mesa 3D graphics library [XFree86]
ii  xlibmesa-glu [libglu1]   4.3.0.dfsg.1-10 Mesa OpenGL utility library [XFree
ii  xlibs                    4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to