{"action":"created","issue":{"url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2216","labels_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2216/labels{/name}","comments_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2216/comments","events_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2216/events","html_url":"https://github.com/supertuxkart/stk-code/issues/2216","id":87547326,"number":2216,"title":"Kart selection screen : slow navigation between karts","user":{"login":"auriamg","id":4296971,"avatar_url":"https://avatars.githubusercontent.com/u/4296971?v=3","gravatar_id":"","url":"https://api.github.com/users/auriamg","html_url":"https://github.com/auriamg","followers_url":"https://api.github.com/users/auriamg/followers","following_url":"https://api.github.com/users/auriamg/following{/other_user}","gists_url":"https://api.github.com/users/auriamg/gists{/gist_id}","starred_url":"https://api.github.com/users/auriamg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auriamg/subscriptions","organizations_url":"https://api.github.com/users/auriamg/orgs","repos_url":"https://api.github.com/users/auriamg/repos","events_url":"https://api.github.com/users/auriamg/events{/privacy}","received_events_url":"https://api.github.com/users/auriamg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/supertuxkart/stk-code/labels/P4:%20minor","name":"P4: minor","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-12T00:07:00Z","updated_at":"2015-06-13T02:18:12Z","closed_at":null,"body":"Quite a few people have reported that switching between kart s on the kart selection screen is slow, so I've started investiguating. It appears most of the time is spent uploading the mesh to the GPU, in method \"PrepareDrawCalls\", corresponding to profiler marker \"Animations/Buffer upload\". Not sure much can be done about that, but documenting my findings anyway so we don't lose that info"},"comment":{"url":"https://api.github.com/repos/supertuxkart/stk-code/issues/comments/111655385","html_url":"https://github.com/supertuxkart/stk-code/issues/2216#issuecomment-111655385","issue_url":"https://api.github.com/repos/supertuxkart/stk-code/issues/2216","id":111655385,"user":{"login":"hiker","id":6138652,"avatar_url":"https://avatars.githubusercontent.com/u/6138652?v=3","gravatar_id":"","url":"https://api.github.com/users/hiker","html_url":"https://github.com/hiker","followers_url":"https://api.github.com/users/hiker/followers","following_url":"https://api.github.com/users/hiker/following{/other_user}","gists_url":"https://api.github.com/users/hiker/gists{/gist_id}","starred_url":"https://api.github.com/users/hiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiker/subscriptions","organizations_url":"https://api.github.com/users/hiker/orgs","repos_url":"https://api.github.com/users/hiker/repos","events_url":"https://api.github.com/users/hiker/events{/privacy}","received_events_url":"https://api.github.com/users/hiker/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T02:18:12Z","updated_at":"2015-06-13T02:18:12Z","body":"For me the slowness appears to be related to the line:\r\n    // TODO: put this outside of the rendering loop\r\n    irr_driver->generateDiffuseCoefficients();\r\nRemoving this lines doubles my fps in the kart selection screen (I have seen 8 to 12 fps with that function call, and 15 to 31 without that line - though I was using debug mode)."}}