{"action":"created","issue":{"url":"https://api.github.com/repos/visionworkbench/visionworkbench/issues/19","labels_url":"https://api.github.com/repos/visionworkbench/visionworkbench/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/visionworkbench/visionworkbench/issues/19/comments","events_url":"https://api.github.com/repos/visionworkbench/visionworkbench/issues/19/events","html_url":"https://github.com/visionworkbench/visionworkbench/issues/19","id":1304239,"number":19,"title":"vwv pixel shader code is too complex","user":{"login":"khusmann","id":167160,"avatar_url":"https://avatars.githubusercontent.com/u/167160?v=3","gravatar_id":"","url":"https://api.github.com/users/khusmann","html_url":"https://github.com/khusmann","followers_url":"https://api.github.com/users/khusmann/followers","following_url":"https://api.github.com/users/khusmann/following{/other_user}","gists_url":"https://api.github.com/users/khusmann/gists{/gist_id}","starred_url":"https://api.github.com/users/khusmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khusmann/subscriptions","organizations_url":"https://api.github.com/users/khusmann/orgs","repos_url":"https://api.github.com/users/khusmann/repos","events_url":"https://api.github.com/users/khusmann/events{/privacy}","received_events_url":"https://api.github.com/users/khusmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2011-07-28T17:04:55Z","updated_at":"2016-01-15T19:23:33Z","closed_at":"2016-01-15T19:23:33Z","body":"When trying to run vwv on my netbook (with a less than powerful graphics card), I get the error:\r\n\r\n```i915_program_error: Exceeded max instructions (213 out of 123)```\r\n\r\nThis is because the fragment shader code (https://github.com/visionworkbench/visionworkbench/blob/master/src/vw/gui/GlPreviewWidget.cc#L37) has too many nested-if statements.\r\n\r\nTo minimize the number of instructions in the shader, it would be better to break that single pixel shader into multiple shaders that are swapped in depending on what function (channel select, hillshade, etc) is selected. This way it would run on graphics cards like mine."},"comment":{"url":"https://api.github.com/repos/visionworkbench/visionworkbench/issues/comments/172059545","html_url":"https://github.com/visionworkbench/visionworkbench/issues/19#issuecomment-172059545","issue_url":"https://api.github.com/repos/visionworkbench/visionworkbench/issues/19","id":172059545,"user":{"login":"ScottMcMichael","id":4675012,"avatar_url":"https://avatars.githubusercontent.com/u/4675012?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottMcMichael","html_url":"https://github.com/ScottMcMichael","followers_url":"https://api.github.com/users/ScottMcMichael/followers","following_url":"https://api.github.com/users/ScottMcMichael/following{/other_user}","gists_url":"https://api.github.com/users/ScottMcMichael/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottMcMichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottMcMichael/subscriptions","organizations_url":"https://api.github.com/users/ScottMcMichael/orgs","repos_url":"https://api.github.com/users/ScottMcMichael/repos","events_url":"https://api.github.com/users/ScottMcMichael/events{/privacy}","received_events_url":"https://api.github.com/users/ScottMcMichael/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T19:23:33Z","updated_at":"2016-01-15T19:23:33Z","body":"This code was moved to the graveyard."}}