Dear Carsten,

I've applied this patch too, but cant find the definition of
bool osgGlCheckError(const char *file, int line, const char *msg);

Unfortunately I cant get sources from sourceforge because of some
attack at they site.
Can you point me in the right direction? CVS seems to be set up again
only within the end of the week

Bests,

Josef Grunig


On Thu, Jan 20, 2011 at 6:25 PM, Carsten Neumann
<carsten_neum...@gmx.net> wrote:
>        Hello Enrico,
>
> On 01/20/2011 04:40 AM, Enrico Borrione wrote:
>>
>> Hello, OpenSG users,
>>        i am writing an application that uses several FBOViewports to
>> calculate the ambient occlusion of a model.
>> Since I am doing lots of renderings to retrieve the necessary
>> informations,
>> I am profiling the function calls inside my app to optimize it wherever
>> it's
>> possible.
>> During the profiling I've noticed that the FBOViewport does a lot of
>> glGetError queries, actually breaking the OpenGL pipeline. Looking inside
>> the source code, I've noticed that the queries are enabled both in debug
>> and
>> release. While I understand that these queries are advisable in debug, I
>> think that they are pointless when using the release libraries.
>> Is this correct or maybe I should check my compilation files to disable
>> the
>> unnecessary queries when in release?
>
> we usually only do OpenGL error checking in debug builds (normally through
> OpenSG's glErr macro), but the FBOViewport used a local function that did
> the checking unconditionally. I just committed a fix for that (patch
> attached as well).
>
>        Cheers,
>                Carsten
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Opensg-users mailing list
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>



-- 
Josef

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to