{"action":"created","issue":{"url":"https://api.github.com/repos/schteppe/p2.js/issues/177","labels_url":"https://api.github.com/repos/schteppe/p2.js/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/schteppe/p2.js/issues/177/comments","events_url":"https://api.github.com/repos/schteppe/p2.js/issues/177/events","html_url":"https://github.com/schteppe/p2.js/issues/177","id":95934001,"number":177,"title":"Body.updateAABB increases CPU usage over time","user":{"login":"cnatale","id":2414716,"avatar_url":"https://avatars.githubusercontent.com/u/2414716?v=3","gravatar_id":"","url":"https://api.github.com/users/cnatale","html_url":"https://github.com/cnatale","followers_url":"https://api.github.com/users/cnatale/followers","following_url":"https://api.github.com/users/cnatale/following{/other_user}","gists_url":"https://api.github.com/users/cnatale/gists{/gist_id}","starred_url":"https://api.github.com/users/cnatale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnatale/subscriptions","organizations_url":"https://api.github.com/users/cnatale/orgs","repos_url":"https://api.github.com/users/cnatale/repos","events_url":"https://api.github.com/users/cnatale/events{/privacy}","received_events_url":"https://api.github.com/users/cnatale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-19T17:23:21Z","updated_at":"2015-07-19T20:31:59Z","closed_at":null,"body":"Test browser: Chrome 43.0.2357.134 (64-bit) Mac\r\n\r\nI am working with a modified version of the ragdoll demo (you can view source here: https://bitbucket.org/chrisnatale/ihtai/src/d0aedb966d2f2011c7ffa33d15dd73effc7272aa/ragdolldemo.html?at=master). The total number of objects onscreen is static over time. There are four planes that serve as a container for the ragdoll, and the ragdoll itself.\r\n\r\nOne thing I am noticing while profiling is that total CPU usage by the Body.updateAABB() method continually increases over time. If I leave the simulation running overnight, performance slows to a crawl due to CPU usage of this method. Percentage of total CPU usage for this method increases as follows:\r\n\r\n5 minutes: 1.57%\r\n10 minutes: 2.93%\r\n15 minutes: 5.14%\r\n~8 hours: 53.84%\r\n\r\nLooking at the method and methods calling it, nothing immediately jumps out. Any ideas on what would be causing this?\r\n\r\n\r\nAttached: screenshots of Chrome's CPU Usage profiler results.\r\n\r\nFive Minutes:\r\n<img width=\"1144\" alt=\"five minutes\" src=\"https://cloud.githubusercontent.com/assets/2414716/8766942/1217c0e2-2e00-11e5-907f-a7a058330210.png\">\r\n\r\nTen Minutes:\r\n<img width=\"1144\" alt=\"ten minutes\" src=\"https://cloud.githubusercontent.com/assets/2414716/8766945/121babe4-2e00-11e5-8246-a4a5476db6c1.png\">\r\n\r\nFifteen Minutes:\r\n<img width=\"1145\" alt=\"fifteen minutes\" src=\"https://cloud.githubusercontent.com/assets/2414716/8766943/121a35c0-2e00-11e5-9ddc-43f50aa6012d.png\">\r\n\r\nEight Hours:\r\n<img width=\"1145\" alt=\"eight hours\" src=\"https://cloud.githubusercontent.com/assets/2414716/8766944/121ab360-2e00-11e5-8c3a-ef8222567e46.png\">\r\n\r\n\r\nUpdate: here is the expanded call stack from the simulation after it has been running for ~eight hours:\r\n<img width=\"1142\" alt=\"eight hours expanded callstack\" src=\"https://cloud.githubusercontent.com/assets/2414716/8767159/a135d644-2e08-11e5-8167-bd5c8b600751.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/schteppe/p2.js/issues/comments/122701654","html_url":"https://github.com/schteppe/p2.js/issues/177#issuecomment-122701654","issue_url":"https://api.github.com/repos/schteppe/p2.js/issues/177","id":122701654,"user":{"login":"cnatale","id":2414716,"avatar_url":"https://avatars.githubusercontent.com/u/2414716?v=3","gravatar_id":"","url":"https://api.github.com/users/cnatale","html_url":"https://github.com/cnatale","followers_url":"https://api.github.com/users/cnatale/followers","following_url":"https://api.github.com/users/cnatale/following{/other_user}","gists_url":"https://api.github.com/users/cnatale/gists{/gist_id}","starred_url":"https://api.github.com/users/cnatale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnatale/subscriptions","organizations_url":"https://api.github.com/users/cnatale/orgs","repos_url":"https://api.github.com/users/cnatale/repos","events_url":"https://api.github.com/users/cnatale/events{/privacy}","received_events_url":"https://api.github.com/users/cnatale/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T20:31:59Z","updated_at":"2015-07-19T20:31:59Z","body":"Memory appears to be holding steady in these tests. I'll take some screen caps the next time I run it overnight, but I observed it holding at ~257 megs."}}