{"action":"closed","issue":{"url":"https://api.github.com/repos/jefferislab/nat.templatebrains/issues/22","repository_url":"https://api.github.com/repos/jefferislab/nat.templatebrains","labels_url":"https://api.github.com/repos/jefferislab/nat.templatebrains/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/jefferislab/nat.templatebrains/issues/22/comments","events_url":"https://api.github.com/repos/jefferislab/nat.templatebrains/issues/22/events","html_url":"https://github.com/jefferislab/nat.templatebrains/issues/22","id":135350683,"number":22,"title":"Reducing alpha of segmented surface template brains slows interactivity","user":{"login":"josesho","id":12838917,"avatar_url":"https://avatars.githubusercontent.com/u/12838917?v=3","gravatar_id":"","url":"https://api.github.com/users/josesho","html_url":"https://github.com/josesho","followers_url":"https://api.github.com/users/josesho/followers","following_url":"https://api.github.com/users/josesho/following{/other_user}","gists_url":"https://api.github.com/users/josesho/gists{/gist_id}","starred_url":"https://api.github.com/users/josesho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josesho/subscriptions","organizations_url":"https://api.github.com/users/josesho/orgs","repos_url":"https://api.github.com/users/josesho/repos","events_url":"https://api.github.com/users/josesho/events{/privacy}","received_events_url":"https://api.github.com/users/josesho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jefferislab/nat.templatebrains/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-22T08:32:40Z","updated_at":"2016-02-23T09:29:18Z","closed_at":"2016-02-23T09:29:18Z","body":"When the alpha of a segmented surface brain is reduced, it is difficult to interact with the 3D rendering -- rotating and panning become extremely laggy.\r\n\r\n```{r}\r\nlibrary('nat')\r\nlibrary('nat.flybrains')\r\n\r\nnopen3d()\r\nplot3d(FCWBNP.surf) # Display the segment FCWB surface model as per default. Interactivity is OK.\r\npar3d(windowRect=c(0,0,1024,768)) # Make the X11 window larger.\r\n\r\nnopen3d()\r\nplot3d(FCWBNP.surf, alpha = 0.5) # Display the segment FCWB surface model, with reduced opacity.\r\npar3d(windowRect=c(0,0,1024,768)) # Make the X11 window larger.\r\n# Note how laggy the interactive window becomes.\r\n```\r\n\r\nAny ways to mitigate the lag? I observe the lag both on a 27\" mid-2010 iMac, and a 15\" late-2013 MacBook Pro.\r\n\r\n```{r}\r\n> sessionInfo()\r\nR version 3.2.2 (2015-08-14)\r\nPlatform: x86_64-apple-darwin13.4.0 (64-bit)\r\nRunning under: OS X 10.11.3 (El Capitan)\r\n\r\nlocale:\r\n[1] C\r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] nat.flybrains_1.6        nat.templatebrains_0.6.2 nat_1.7.2                rgl_0.95.1435           \r\n\r\nloaded via a namespace (and not attached):\r\n [1] magrittr_1.5     tools_3.2.2      igraph_1.0.1     rappdirs_0.3     yaml_2.1.13      nat.utils_0.5.1 \r\n [7] Rcpp_0.12.3      filehash_2.3     codetools_0.2-14 nabor_0.4.6      digest_0.6.9    \r\n```"}}