mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
additional optimizations
This commit is contained in:
parent
4ea36f8996
commit
5d931eacc6
4 changed files with 58 additions and 67 deletions
|
|
@ -30,7 +30,6 @@ ChunksController::ChunksController(Level* level, uint padding)
|
|||
}
|
||||
|
||||
ChunksController::~ChunksController(){
|
||||
delete generator;
|
||||
}
|
||||
|
||||
void ChunksController::update(int64_t maxDuration) {
|
||||
|
|
@ -73,6 +72,7 @@ bool ChunksController::loadVisible(){
|
|||
}
|
||||
chunk->surrounding = surrounding;
|
||||
if (surrounding == MIN_SURROUNDING && !chunk->isLighted()) {
|
||||
timeutil::ScopeLogTimer log(555);
|
||||
bool lightsCache = chunk->isLoadedLights();
|
||||
if (!lightsCache) {
|
||||
lighting->buildSkyLight(chunk->x, chunk->z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue