{"action":"created","issue":{"url":"https://api.github.com/repos/cedricpinson/osgexport/issues/42","labels_url":"https://api.github.com/repos/cedricpinson/osgexport/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/cedricpinson/osgexport/issues/42/comments","events_url":"https://api.github.com/repos/cedricpinson/osgexport/issues/42/events","html_url":"https://github.com/cedricpinson/osgexport/pull/42","id":117174100,"number":42,"title":"Do not set StateSets to DYNAMIC dataVariance","user":{"login":"scrawl","id":720642,"avatar_url":"https://avatars.githubusercontent.com/u/720642?v=3","gravatar_id":"","url":"https://api.github.com/users/scrawl","html_url":"https://github.com/scrawl","followers_url":"https://api.github.com/users/scrawl/followers","following_url":"https://api.github.com/users/scrawl/following{/other_user}","gists_url":"https://api.github.com/users/scrawl/gists{/gist_id}","starred_url":"https://api.github.com/users/scrawl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrawl/subscriptions","organizations_url":"https://api.github.com/users/scrawl/orgs","repos_url":"https://api.github.com/users/scrawl/repos","events_url":"https://api.github.com/users/scrawl/events{/privacy}","received_events_url":"https://api.github.com/users/scrawl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-16T17:17:57Z","updated_at":"2016-01-26T11:04:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cedricpinson/osgexport/pulls/42","html_url":"https://github.com/cedricpinson/osgexport/pull/42","diff_url":"https://github.com/cedricpinson/osgexport/pull/42.diff","patch_url":"https://github.com/cedricpinson/osgexport/pull/42.patch"},"body":"Doing so makes the exported models slow to render. If there are Drawables or StateSets set to DYNAMIC in the scene graph, OSG has to wait until the draw traversal processed that Drawable / StateSet before commencing the next frame.\r\n\r\nIn this case, the exported StateSets do not have a callback attached, nor are they otherwise updated so a DYNAMIC data variance is unnecessary. "},"comment":{"url":"https://api.github.com/repos/cedricpinson/osgexport/issues/comments/174958136","html_url":"https://github.com/cedricpinson/osgexport/pull/42#issuecomment-174958136","issue_url":"https://api.github.com/repos/cedricpinson/osgexport/issues/42","id":174958136,"user":{"login":"AurL","id":4066133,"avatar_url":"https://avatars.githubusercontent.com/u/4066133?v=3","gravatar_id":"","url":"https://api.github.com/users/AurL","html_url":"https://github.com/AurL","followers_url":"https://api.github.com/users/AurL/followers","following_url":"https://api.github.com/users/AurL/following{/other_user}","gists_url":"https://api.github.com/users/AurL/gists{/gist_id}","starred_url":"https://api.github.com/users/AurL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AurL/subscriptions","organizations_url":"https://api.github.com/users/AurL/orgs","repos_url":"https://api.github.com/users/AurL/repos","events_url":"https://api.github.com/users/AurL/events{/privacy}","received_events_url":"https://api.github.com/users/AurL/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T11:04:54Z","updated_at":"2016-01-26T11:04:54Z","body":"Hi @scrawl \r\n\r\nThanks! Your first commit is not so clear for me, why not setting it outside the loop?\r\nBTW, I included this change in the lastest osgexport updates. Since there are no material animations for now, if I'm right, we can also set Material to STATIC ?\r\n\r\n"}}