collect statistics for a short period

This commit is contained in:
Azgaar 2021-09-24 01:00:03 +03:00 committed by Peter
parent b3e0d5e7b1
commit 83fa6a13e6
7 changed files with 48 additions and 866 deletions

View file

@ -2070,6 +2070,7 @@ function showStatistics() {
mapId = Date.now(); // unique map id is it's creation date number
mapHistory.push({seed, width: graphWidth, height: graphHeight, template: heightmap, created: mapId});
INFO && console.log(stats);
track("generate", `Template: ${template} ${templateRandom}. Points: ${pointsInput.dataset.cells}`);
}
const regenerateMap = debounce(async function (options) {