Terrain performance

This commit is contained in:
zenoamaro committed 2019-06-26 21:05:18 +02:00
1 parent 9b9bbc70e8
commit 953a02e3f5
5 files changed
+46 -29

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ export function drawParagraph(ctx, text, x, y, w, h, color) {
export function loop(fn) {
(function looped() {
requestAnimationFrame(looped);
fn();
requestAnimationFrame(looped);
})();
}