{"action":"created","issue":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/292","labels_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/292/comments","events_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/292/events","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/292","id":91920504,"number":292,"title":"Reduce uniforms","user":{"login":"AlrikG","id":1376505,"avatar_url":"https://avatars.githubusercontent.com/u/1376505?v=3","gravatar_id":"","url":"https://api.github.com/users/AlrikG","html_url":"https://github.com/AlrikG","followers_url":"https://api.github.com/users/AlrikG/followers","following_url":"https://api.github.com/users/AlrikG/following{/other_user}","gists_url":"https://api.github.com/users/AlrikG/gists{/gist_id}","starred_url":"https://api.github.com/users/AlrikG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlrikG/subscriptions","organizations_url":"https://api.github.com/users/AlrikG/orgs","repos_url":"https://api.github.com/users/AlrikG/repos","events_url":"https://api.github.com/users/AlrikG/events{/privacy}","received_events_url":"https://api.github.com/users/AlrikG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-29T22:03:30Z","updated_at":"2015-07-22T02:53:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/pulls/292","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/292","diff_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/292.diff","patch_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/292.patch"},"body":"I've found an issue with the uniforms. It seams that they are sent to the GPU even if the value hasn't changed.\r\nIn my game I was able to reduce the uniforms from ~10.000 to ~2000 which results in up to 15% of performance increase. For me it was about 10 fps more than before.\r\n\r\nforum link: http://hub.jmonkeyengine.org/t/performance-issue-too-much-uniform-updates/33016"},"comment":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/comments/123545611","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/292#issuecomment-123545611","issue_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/292","id":123545611,"user":{"login":"empirephoenix","id":2292999,"avatar_url":"https://avatars.githubusercontent.com/u/2292999?v=3","gravatar_id":"","url":"https://api.github.com/users/empirephoenix","html_url":"https://github.com/empirephoenix","followers_url":"https://api.github.com/users/empirephoenix/followers","following_url":"https://api.github.com/users/empirephoenix/following{/other_user}","gists_url":"https://api.github.com/users/empirephoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/empirephoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/empirephoenix/subscriptions","organizations_url":"https://api.github.com/users/empirephoenix/orgs","repos_url":"https://api.github.com/users/empirephoenix/repos","events_url":"https://api.github.com/users/empirephoenix/events{/privacy}","received_events_url":"https://api.github.com/users/empirephoenix/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T02:53:54Z","updated_at":"2015-07-22T02:53:54Z","body":"Hm, so if the camera moves, the gain is gone, right? Aka the test case might be flawed."}}