Re: [PyOpenGL-Users] Suspiciously slow script
Brought to you by:
mcfletch
|
From: Derakon <de...@gm...> - 2010-05-22 20:00:22
|
Responses inline.
On Sat, May 22, 2010 at 12:04 PM, Mike C. Fletcher
<mcf...@vr...> wrote:
>
> To start debugging:
>
> does disabling OpenGL_accelerate change your performance (on my machine
> there is no difference, which suggests that OpenGL_accelerate isn't likely
> to be your problem)
>
> import OpenGL
> OpenGL.USE_ACCELERATE = False
>
Tried this; no change.
> confirm that your machine is using direct rendering (i.e. actually using
> your hardware driver, not a software renderer)
>
> on Linux: glxinfo | grep direct
>
No idea how to do this on an OSX box, but given that I'm using a card
that shipped with the box, and that games do work properly, I'd be
extremely surprised if I were using software rendering.
> confirm that non-Python OpenGL programs are *currently* running reasonably
> well on this machine
They are. I've been playing Torchlight all last week; I assume it's
OpenGL because what else would it be on a Mac? DirectX is out of the
question and I'm not aware of any other graphics libraries that would
work.
> confirm that you are not using an OpenGL compositing desktop (e.g. compiz on
> Linux) which may cause indirect rendering of OpenGL windows
Again, not certain how to do this; however, I tested the script in
OSX's built-in X11 system, which (I'm fairly certain) skips most of
the pretty-ifying steps that the window manager normally does, and
it's still slow.
> confirm that you do not have system-level anti-aliasing settings enabled
> (i.e. a 4x or 8x antialiasing specified in ATIs control panel)
No ATI control panel, but again, something like this would affect games.
> try generating mipmaps and using mipmap-nearest (just for kicks)
Okay, I replaced the glTexImage2D in the script with this:
GLU.gluBuild2DMipmaps(GL.GL_TEXTURE_2D, GL.GL_RGBA, surface.get_width(),
surface.get_height(), GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, textureData)
and replaced the GL_TEXTURE_MIN_FILTER line with this:
GL.glTexParameterf(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER,
GL.GL_LINEAR_MIPMAP_LINEAR)
and now I get 333FPS! What the heck?
>
> Realize that isn't all that much help, but this is looking like a
> system/config issue. Good luck,
> Mike
>
> --
> ________________________________________________
> Mike C. Fletcher
> Designer, VR Plumber, Coder
> http://www.vrplumber.com
> http://blog.vrplumber.com
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> PyO...@li...
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users
>
>
|