Re: OpenGL.CONTEXT_CHECKING default value is not False as documented

"Mike C. Fletcher" <[email protected]> Tue, 18 Feb 2014 15:24:35 -0500
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
On 14-02-18 07:47 AM, rndblnch wrote:
> hello,
>
> while profiling some of my code, i discovered that context checking is
> enabled by default, despite the documentation advertising the opposite (see
> OpenGL/__init__.py lines 79 vs. 185).
>
> i have no opinion on its default value (True is consistent with the other
> XXX_CHECKING flags) but maybe you should fix the docstring, and perhaps add
> a note about this flag in
> http://pyopengl.sourceforge.net/documentation/opengl_diffs.html since
> context checking introduces a rather high overhead.
The default value should still be no-checking. I set it to True while I 
was working on the refactoring of the raw hierarchy to catch errors and 
then forgot to return it.

Thanks,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net