{"action":"created","issue":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/952","labels_url":"https://api.github.com/repos/craftyjs/Crafty/issues/952/labels{/name}","comments_url":"https://api.github.com/repos/craftyjs/Crafty/issues/952/comments","events_url":"https://api.github.com/repos/craftyjs/Crafty/issues/952/events","html_url":"https://github.com/craftyjs/Crafty/issues/952","id":100474746,"number":952,"title":"Performance","user":{"login":"Aliance","id":7838144,"avatar_url":"https://avatars.githubusercontent.com/u/7838144?v=3","gravatar_id":"","url":"https://api.github.com/users/Aliance","html_url":"https://github.com/Aliance","followers_url":"https://api.github.com/users/Aliance/followers","following_url":"https://api.github.com/users/Aliance/following{/other_user}","gists_url":"https://api.github.com/users/Aliance/gists{/gist_id}","starred_url":"https://api.github.com/users/Aliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aliance/subscriptions","organizations_url":"https://api.github.com/users/Aliance/orgs","repos_url":"https://api.github.com/users/Aliance/repos","events_url":"https://api.github.com/users/Aliance/events{/privacy}","received_events_url":"https://api.github.com/users/Aliance/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-12T06:12:45Z","updated_at":"2015-09-16T15:42:04Z","closed_at":null,"body":"Welcome.\r\n\r\nI have the following question: why **Crafty** can not cope even with a light load, such as map of `36x36` tiles of `32` pixels each. If I use **DOM** - the browser crushes, if **canvas** - a little bit better. But if I add some more entities with animation - everything becomes very sad even in **canvas**. \r\n\r\nFor example, crafty competing analog, **phaser**, making it much faster."},"comment":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/comments/140781448","html_url":"https://github.com/craftyjs/Crafty/issues/952#issuecomment-140781448","issue_url":"https://api.github.com/repos/craftyjs/Crafty/issues/952","id":140781448,"user":{"login":"Sythe2o0","id":4564184,"avatar_url":"https://avatars.githubusercontent.com/u/4564184?v=3","gravatar_id":"","url":"https://api.github.com/users/Sythe2o0","html_url":"https://github.com/Sythe2o0","followers_url":"https://api.github.com/users/Sythe2o0/followers","following_url":"https://api.github.com/users/Sythe2o0/following{/other_user}","gists_url":"https://api.github.com/users/Sythe2o0/gists{/gist_id}","starred_url":"https://api.github.com/users/Sythe2o0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sythe2o0/subscriptions","organizations_url":"https://api.github.com/users/Sythe2o0/orgs","repos_url":"https://api.github.com/users/Sythe2o0/repos","events_url":"https://api.github.com/users/Sythe2o0/events{/privacy}","received_events_url":"https://api.github.com/users/Sythe2o0/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T15:42:04Z","updated_at":"2015-09-16T15:42:04Z","body":"The slowdown probably isn't just from the number of elements, but also from the fact that they are all simultaneously moving and none of them are being undrawn when they aren't on screen. Even so, having over a thousand DOM elements isn't a good idea. I don't use DOM at all in Crafty; it's far too slow. Canvas and WebGL exist to make things like tiled maps faster."}}