Continue working work optimiser.

This commit is contained in:
Godzil
2020-03-11 19:35:08 +00:00
parent 420203e95d
commit 0aa949c60b
6 changed files with 263 additions and 8 deletions

View File

@@ -189,11 +189,12 @@ Colour World::refractedColour(Computation comps, uint32_t depthCount)
void World::finalise(WorldOptimiser &opt)
{
/* First lock eveyrything */
/* First lock everything */
this->worldGroup.lock();
/* Now run the optimiser */
opt.run(&this->worldGroup);
opt.setRoot(&this->worldGroup);
opt.run();
}
void World::dumpMe(FILE *fp)