mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Added Logging Options to Improve Performance
This commit is contained in:
parent
05f54ab9e1
commit
fbab301e41
18 changed files with 189 additions and 184 deletions
|
|
@ -5,7 +5,7 @@
|
|||
}(this, (function () {'use strict';
|
||||
|
||||
const generate = function(changeHeights = true) {
|
||||
console.time('generateRivers');
|
||||
DEBUG && console.time('generateRivers');
|
||||
Math.seedrandom(seed);
|
||||
const cells = pack.cells, p = cells.p, features = pack.features;
|
||||
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
// apply change heights as basic one
|
||||
if (changeHeights) cells.h = Uint8Array.from(h);
|
||||
|
||||
console.timeEnd('generateRivers');
|
||||
DEBUG && console.timeEnd('generateRivers');
|
||||
}
|
||||
|
||||
// depression filling algorithm (for a correct water flux modeling)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue