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:
Bryce Kabat 2020-10-21 17:32:57 -05:00 committed by Azgaar
parent ae58634dee
commit 122c456588
18 changed files with 192 additions and 186 deletions

View file

@ -5,7 +5,7 @@
}(this, (function () {'use strict';
const ReliefIcons = function() {
console.time('drawRelief');
TIME && console.time('drawRelief');
terrain.selectAll("*").remove();
const density = terrain.attr("density") || .4;
const size = 1.6 * (terrain.attr("size") || 1);
@ -69,7 +69,7 @@
terrain.html(reliefHTML);
}()
console.timeEnd('drawRelief');
TIME && console.timeEnd('drawRelief');
}
function getBiomeIcon(i, b) {