Moved the delete operations to before of the compile operations to ensure that
delete operations don't get pushed out by allocations
This commit is contained in:
parent
79276b3169
commit
e26579b0ec
@ -390,10 +390,6 @@ void Renderer::draw()
|
||||
_availableQueue.add(sceneView);
|
||||
|
||||
double availableTime = 0.004; // 4 ms
|
||||
if (databasePager && databasePager->requiresExternalCompileGLObjects(sceneView->getState()->getContextID()))
|
||||
{
|
||||
databasePager->compileGLObjects(*(sceneView->getState()), availableTime);
|
||||
}
|
||||
|
||||
if (compileThread)
|
||||
{
|
||||
@ -404,6 +400,11 @@ void Renderer::draw()
|
||||
sceneView->flushDeletedGLObjects(availableTime);
|
||||
}
|
||||
|
||||
if (databasePager && databasePager->requiresExternalCompileGLObjects(sceneView->getState()->getContextID()))
|
||||
{
|
||||
databasePager->compileGLObjects(*(sceneView->getState()), availableTime);
|
||||
}
|
||||
|
||||
if (acquireGPUStats)
|
||||
{
|
||||
endQuery();
|
||||
|
Loading…
Reference in New Issue
Block a user