perf optimizations

This commit is contained in:
Anton Lavrenov
2020-06-16 16:20:36 -05:00
parent e22a98d656
commit 0fe8e7fb7f
7 changed files with 126 additions and 39 deletions

View File

@@ -92,6 +92,7 @@
transformsEnabled: 'position',
x: 10,
y: 10,
perfectDrawEnabled: false,
});
bunny.speedX = Math.random() * 10;
@@ -122,6 +123,7 @@
transformsEnabled: 'position',
x: 0,
y: 0,
perfectDrawEnabled: false,
});
bunny.speedX = Math.random() * 10;
bunny.speedY = Math.random() * 10 - 5;