Why are you doing this to me?
No, but really, what is the reason for calling changeRenderContext every frame?
*Its like the most painfully slow OpenGL call you can make (takes roughly 0.25ms)
OpenGLDriver: Calling makeCurrent() on every beginScene() ?
Re: OpenGLDriver: Calling makeCurrent() on every beginScene(
Hi,
Thanks for a report this issue, it'll be fixed in the upcoming commit.
Cheers,
Thanks for a report this issue, it'll be fixed in the upcoming commit.
Cheers,
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Re: OpenGLDriver: Calling makeCurrent() on every beginScene(
I wonder if that's needed for the Qt and WxWidgets embedders?
Re: OpenGLDriver: Calling makeCurrent() on every beginScene(
Actually this is needed for OSX, because render context can be changed by OSX GUI. I fixed this bug for cocos2d-x by also making the context current before every frame: https://github.com/cocos2d/cocos2d-x/pull/14598
Re: OpenGLDriver: Calling makeCurrent() on every beginScene(
Perhaps you could make that "changeRenderContext" OSX specific then?
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: OpenGLDriver: Calling makeCurrent() on every beginScene(
Qt and Wx also run on Linux, Windows, etc. So if they need it, you can't filter by platform.
Re: OpenGLDriver: Calling makeCurrent() on every beginScene(
I'll check how this situation looks at OSX 10.9. If it will be required for Qt, wx etc. we can call glMakeCurrent only when SIrrlichtCreationParams::windowId isn't equal NULL, however IIRC this issue is just my mistake (missing simple 'if')
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes