mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Added Logging Options to Improve Performance (#529)
* Added Logging Options to Improve Performance * Requested Changes Co-authored-by: Onyx Azryn <brycekabat@onyxazryn.com>
This commit is contained in:
parent
e480c1c8e5
commit
f4efedcf9d
18 changed files with 192 additions and 186 deletions
|
|
@ -7,7 +7,7 @@
|
|||
let cells, p, states;
|
||||
|
||||
const generate = function() {
|
||||
console.time("generateMilitaryForces");
|
||||
TIME && console.time("generateMilitaryForces");
|
||||
cells = pack.cells, p = cells.p, states = pack.states;
|
||||
const valid = states.filter(s => s.i && !s.removed); // valid states
|
||||
if (!options.military) options.military = getDefaultOptions();
|
||||
|
|
@ -176,7 +176,7 @@
|
|||
return regiments;
|
||||
}
|
||||
|
||||
console.timeEnd("generateMilitaryForces");
|
||||
TIME && console.timeEnd("generateMilitaryForces");
|
||||
}
|
||||
|
||||
const getDefaultOptions = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue