1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Minor fixes and add save button

This commit is contained in:
tobspr
2020-05-14 22:05:06 +02:00
parent b01d38e55d
commit 330c98267a
8 changed files with 47 additions and 21 deletions

View File

@@ -187,14 +187,6 @@ export class Savegame extends ReadWriteProxy {
if (!dump) {
return false;
}
const parsed = JSON.stringify(compressObject(dump));
const compressed = compressX64(parsed);
console.log("Regular: ", Math.round(parsed.length / 1024.0), "KB");
console.log("Compressed: ", Math.round(compressed.length / 1024.0), "KB");
// let duration = performanceNow() - timer;
// console.log("TOOK", duration, "ms to generate dump:", dump);
const shadowData = Object.assign({}, this.currentData);
shadowData.dump = dump;