{"action":"created","issue":{"url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/2172","repository_url":"https://api.github.com/repos/MovingBlocks/Terasology","labels_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/2172/labels{/name}","comments_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/2172/comments","events_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/2172/events","html_url":"https://github.com/MovingBlocks/Terasology/pull/2172","id":134201336,"number":2172,"title":"Allow rigid bodies to settle and sleep - time for more explosions!","user":{"login":"Josharias","id":5922109,"avatar_url":"https://avatars.githubusercontent.com/u/5922109?v=3","gravatar_id":"","url":"https://api.github.com/users/Josharias","html_url":"https://github.com/Josharias","followers_url":"https://api.github.com/users/Josharias/followers","following_url":"https://api.github.com/users/Josharias/following{/other_user}","gists_url":"https://api.github.com/users/Josharias/gists{/gist_id}","starred_url":"https://api.github.com/users/Josharias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Josharias/subscriptions","organizations_url":"https://api.github.com/users/Josharias/orgs","repos_url":"https://api.github.com/users/Josharias/repos","events_url":"https://api.github.com/users/Josharias/events{/privacy}","received_events_url":"https://api.github.com/users/Josharias/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MovingBlocks/Terasology/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-17T07:14:39Z","updated_at":"2016-02-19T01:21:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/2172","html_url":"https://github.com/MovingBlocks/Terasology/pull/2172","diff_url":"https://github.com/MovingBlocks/Terasology/pull/2172.diff","patch_url":"https://github.com/MovingBlocks/Terasology/pull/2172.patch"},"body":"When rigid bodies are removed,  an area around them is woken up so that bodies resting on top can fall.  This allows large amounts of rigid bodies in the world without actively calculating physics on them (like say from the railgun).  The falling bodies problem was solved before by always setting the bodies to an active state, now it only activates a region around the removed body.\r\n\r\nYou will see framerates improve a couple seconds after a number of railgun hits.  Previous to this change it would drop the framerate down really low until the entities were removed entirely by the LifespanComponent."},"comment":{"url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/comments/186003286","html_url":"https://github.com/MovingBlocks/Terasology/pull/2172#issuecomment-186003286","issue_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/2172","id":186003286,"user":{"login":"Josharias","id":5922109,"avatar_url":"https://avatars.githubusercontent.com/u/5922109?v=3","gravatar_id":"","url":"https://api.github.com/users/Josharias","html_url":"https://github.com/Josharias","followers_url":"https://api.github.com/users/Josharias/followers","following_url":"https://api.github.com/users/Josharias/following{/other_user}","gists_url":"https://api.github.com/users/Josharias/gists{/gist_id}","starred_url":"https://api.github.com/users/Josharias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Josharias/subscriptions","organizations_url":"https://api.github.com/users/Josharias/orgs","repos_url":"https://api.github.com/users/Josharias/repos","events_url":"https://api.github.com/users/Josharias/events{/privacy}","received_events_url":"https://api.github.com/users/Josharias/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T01:21:21Z","updated_at":"2016-02-19T01:21:21Z","body":"I found some other excellent optimizations for this.  Hold off on official testing for a few days."}}