fixed sync between processors

This commit is contained in:
h4570
2020-12-27 19:09:50 +01:00
parent c7fe915174
commit 1d7730504b
4 changed files with 66 additions and 35 deletions
-2
View File
@@ -64,8 +64,6 @@ void Floors::onUpdate()
// You can draw array of meshes in draw() function also. It can be A LOT faster than for looping!
// Why? When given mesh is small, is not animated and is not backface culled, vertex data are send once!
engine->renderer->draw(floorManager->getMeshes(), FLOORS_COUNT, lightManager.bulbs, lightManager.bulbsCount);
// draw() in array mode, sometimes will force you to do synchronization between EE <-> VU1 <-> GS via:
// renderer->clearAndWaitForRender(); or renderer->waitForRender();
ui->render(engine->renderer); // 2D rendering ist LAST step, because layers gonna play there.
}