[FIXED] OpenGL hardware buffer always dirty

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Darktib
Posts: 167
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

[FIXED] OpenGL hardware buffer always dirty

Post by Darktib »

Hello,

I found a bug in the OpenGL driver, in shader-pipeline branch, where hardware buffers are always considered dirty and so are updated every frame (which obviously destroy performance).

The fix is simple: add the following line

Code: Select all

RequiredUpdate = false;
to COpenGLDriver.cpp:326
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: OpenGL hardware buffer always dirty

Post by Nadro »

Thanks, I'll check and fix that.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: OpenGL hardware buffer always dirty

Post by Nadro »

Our SVN is working again, so I was able to sent this update on the repository.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply