Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: OpenGL stat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 12 Topic 4824 of 5017
Post > Topic >>

Re: OpenGL states and performances

by folays <folays@[EMAIL PROTECTED] > Jul 8, 2008 at 04:01 PM

zyend <karim.atiki@[EMAIL PROTECTED]
> writes:

> Hi fungus,
> 
> > Yes, any simple test which eliminates an OpenGL function
> > is good.
> Ok, I'm using the following function:
> 
> glGetIntegerv(GL_TEXTURE_BINDING_2D, &currentID);
> 
> At first, I was using a static variable to store the current texID.
> But in my tile and sprite editor, I have different OpenGL context and
> therefore I experienced some issues with
> my static variable.
> But in my game engine, I expect to have only one OpenGL context and
> then maybe I could re-use this mechanism instead of glGetIntegerv().
> Is glGetIntegerv() such a pain to call ?

Yes, it forces the command pipeline to be flushed/synchronized/whatever
and probably waits until all commands up to your glGetIntergerv are done.

So you are stalling your CPU until the GPU is done.

-- 
folays
 




 12 Posts in Topic:
OpenGL states and performances
karim.atiki@[EMAIL PROTEC  2008-07-07 02:21:18 
Re: OpenGL states and performances
Wolfgang Draxinger <wd  2008-07-07 17:28:16 
Re: OpenGL states and performances
karim.atiki@[EMAIL PROTEC  2008-07-07 08:40:25 
Re: OpenGL states and performances
Wolfgang Draxinger <wd  2008-07-07 19:27:36 
Re: OpenGL states and performances
karim.atiki@[EMAIL PROTEC  2008-07-07 11:39:11 
Re: OpenGL states and performances
Wolfgang Draxinger <wd  2008-07-07 21:02:50 
Re: OpenGL states and performances
fungus <openglMYSOCKS@  2008-07-07 14:12:36 
Re: OpenGL states and performances
fungus <openglMYSOCKS@  2008-07-07 14:15:36 
Re: OpenGL states and performances
fungus <openglMYSOCKS@  2008-07-07 20:22:15 
Re: OpenGL states and performances
Wolfgang Draxinger <wd  2008-07-08 10:05:13 
Re: OpenGL states and performances
zyend <karim.atiki@[EM  2008-07-08 05:57:05 
Re: OpenGL states and performances
folays <folays@[EMAIL   2008-07-08 16:01:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 4:19:22 CST 2008.