{"action":"created","issue":{"url":"https://api.github.com/repos/vispy/vispy/issues/974","labels_url":"https://api.github.com/repos/vispy/vispy/issues/974/labels{/name}","comments_url":"https://api.github.com/repos/vispy/vispy/issues/974/comments","events_url":"https://api.github.com/repos/vispy/vispy/issues/974/events","html_url":"https://github.com/vispy/vispy/issues/974","id":84738696,"number":974,"title":"ImageVisual: set_data function cause modification of shader program","user":{"login":"kmuehlbauer","id":5821660,"avatar_url":"https://avatars.githubusercontent.com/u/5821660?v=3","gravatar_id":"","url":"https://api.github.com/users/kmuehlbauer","html_url":"https://github.com/kmuehlbauer","followers_url":"https://api.github.com/users/kmuehlbauer/followers","following_url":"https://api.github.com/users/kmuehlbauer/following{/other_user}","gists_url":"https://api.github.com/users/kmuehlbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/kmuehlbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmuehlbauer/subscriptions","organizations_url":"https://api.github.com/users/kmuehlbauer/orgs","repos_url":"https://api.github.com/users/kmuehlbauer/repos","events_url":"https://api.github.com/users/kmuehlbauer/events{/privacy}","received_events_url":"https://api.github.com/users/kmuehlbauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-03T19:39:10Z","updated_at":"2015-06-23T02:17:57Z","closed_at":null,"body":"When using set_data function to load new data to ImageVisual a big amount of time is consumed recreating Texture2D.\r\n\r\nSee also this thread in vispy forum: https://groups.google.com/forum/#!topic/vispy/N0KpxZO5ay0 covering the problem.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vispy/vispy/issues/comments/114330965","html_url":"https://github.com/vispy/vispy/issues/974#issuecomment-114330965","issue_url":"https://api.github.com/repos/vispy/vispy/issues/974","id":114330965,"user":{"login":"campagnola","id":940580,"avatar_url":"https://avatars.githubusercontent.com/u/940580?v=3","gravatar_id":"","url":"https://api.github.com/users/campagnola","html_url":"https://github.com/campagnola","followers_url":"https://api.github.com/users/campagnola/followers","following_url":"https://api.github.com/users/campagnola/following{/other_user}","gists_url":"https://api.github.com/users/campagnola/gists{/gist_id}","starred_url":"https://api.github.com/users/campagnola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/campagnola/subscriptions","organizations_url":"https://api.github.com/users/campagnola/orgs","repos_url":"https://api.github.com/users/campagnola/repos","events_url":"https://api.github.com/users/campagnola/events{/privacy}","received_events_url":"https://api.github.com/users/campagnola/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T02:17:57Z","updated_at":"2015-06-23T02:17:57Z","body":"You are correct that the logic for deciding what should be updated is not good -- the vertices, texture, and colormap all need to be updated independently. If you have the time to sort it out, please open a PR!"}}