#441343 python-opengl: Things go awfully slow

#441343#5
Date:
2007-09-08 21:36:36 UTC
From:
To:
Hi!

With the python-opengl that is currently in testing, all things that need
opengl go awfully slow.  I have tried this both in a machine that has mostly
Etch, and in a machine that is updated to the latest versions in unstable.

Downgrading to the version in Etch makes things go fast again.

I've tried with Etch's and Lenny's version of most of the dependencies, and
I wasn't able to make it go fast unless I downgraded python-opengl, so I'm
thinking there's a problem in that package.

I've tested with an Intel video card, and an ATI video card, both with
"Direct Rendering: yes" in the glxinfo output, both with the standard X
drivers for them.

Please let me know if I can add any additional useful information.

Love,
Marga.

#441343#10
Date:
2007-09-10 21:43:20 UTC
From:
To:
Am Samstag, den 08.09.2007, 18:36 -0300 schrieb Margarita Manterola:

Hi,

guessing wildly, I'd say this is due to the fact that PyOpenGL 3 uses
ctypes instead of native bindings, although I didn't expect it to be
that bad.

Unfortunately, I can't try out accelerated rendering on my own machine
now (thanks to some not-mentioned major graphics card vendor who is
somehow unable to put out drivers that run stable with SMP systems, way
to go!). Could you provide a small test script and some timings and I'll
try to work it out with upstream.

best,

Torsten

#441343#15
Date:
2008-08-23 16:53:42 UTC
From:
To:
--- Please enter the report below this line. ---

I also noticed heavy performance problems with python-opengl 3.
I tried 3.0.0~b3-1 from sid and 3.0.0~b5-1 from experimental.
With the attached test-script I get about 5.7 frames per second.
Then I built and installed the etch package 2.0.1.09.dfsg.1-0.2
and reached about 100 frames per second.
(The script draws 300 rectangles and calculates the average fps
during 5 seconds)

There is also a similar bugreport for Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/135736
They also report that version 2.0.1.09 is running fine.

Debian Release: lenny/sid
  500 unstable        www.debian-multimedia.org
  500 unstable        ftp.de.debian.org
    1 experimental    ftp2.de.debian.org
--- Package information. ---
Depends                  (Version) | Installed
==================================-+-============
python                    (<< 2.6) | 2.5.2-2
python                    (>= 2.4) | 2.5.2-2
python-central          (>= 0.6.7) | 0.6.8
python-numeric         (>= 24.2-3) | 24.2-9
xlibmesa-gl                        |
 OR libgl1                         |
xlibmesa-glu                       |
 OR libglu1                        |
libglut3                           |
ttf-bitstream-vera                 | 1.10-7

#441343#20
Date:
2009-09-27 18:56:01 UTC
From:
To:
Here's another test i've written (for FoFiX) that allows you to go
thru three modes: array-based drawing, VBO drawing and direct-mode
drawing.
The latter is awfully slow with pyopengl >= 3 while is was rocking
fast in version 2.

See:  http://tr.im/drawingtest

Perhaps both versions of pyopengl could coexist in Debian?
I still keep a pyopengl 2 package around to play FoFiX.

Cheers,