{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/178","repository_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs","labels_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/178/comments","events_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/178/events","html_url":"https://github.com/Microsoft/WindowsUIDevLabs/issues/178","id":188898869,"number":178,"title":"Alternative CompositionShadow - DropShadow performs poorly on Intel integrated GPU","user":{"login":"bgulrich","id":13284399,"avatar_url":"https://avatars.githubusercontent.com/u/13284399?v=3","gravatar_id":"","url":"https://api.github.com/users/bgulrich","html_url":"https://github.com/bgulrich","followers_url":"https://api.github.com/users/bgulrich/followers","following_url":"https://api.github.com/users/bgulrich/following{/other_user}","gists_url":"https://api.github.com/users/bgulrich/gists{/gist_id}","starred_url":"https://api.github.com/users/bgulrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgulrich/subscriptions","organizations_url":"https://api.github.com/users/bgulrich/orgs","repos_url":"https://api.github.com/users/bgulrich/repos","events_url":"https://api.github.com/users/bgulrich/events{/privacy}","received_events_url":"https://api.github.com/users/bgulrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-12T07:47:14Z","updated_at":"2016-11-14T21:33:35Z","closed_at":null,"body":"I've got a project in which I've wrapped my button shapes the CompositionShadow class provided in your repo.  My target device is a Surface 3 (not Pro) and I've noticed that only a few of these shadows on the screen at any given time, pegs the GPU load at 100%.  I recently removed the call to add the shadow visual to the tree and the GPU load drops to 0 (but of course my shadows are gone).  I tried to create my own drop shadow by applying a black ColorSource to the alphamask of the UIElement and then applying a Gaussian blur, but only hard edges are allowed so my shadow gets clipped (but again my GPU load drops to 0).  I noticed from the API documentation that a visual's shadow isn't clipped by it's container, but it requires a CompositionShadow, but I can't find a way to extend this base class.  Is there any way to accomplish what I'm after?  \r\n-Either to optimize the provided DropShadow so it doesn't eat up my GPU (I can't see a way to set caching or performance/speed tradeoff)\r\n-Or create a more efficient shadow\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/comments/260469585","html_url":"https://github.com/Microsoft/WindowsUIDevLabs/issues/178#issuecomment-260469585","issue_url":"https://api.github.com/repos/Microsoft/WindowsUIDevLabs/issues/178","id":260469585,"user":{"login":"sohchatt","id":16312588,"avatar_url":"https://avatars.githubusercontent.com/u/16312588?v=3","gravatar_id":"","url":"https://api.github.com/users/sohchatt","html_url":"https://github.com/sohchatt","followers_url":"https://api.github.com/users/sohchatt/followers","following_url":"https://api.github.com/users/sohchatt/following{/other_user}","gists_url":"https://api.github.com/users/sohchatt/gists{/gist_id}","starred_url":"https://api.github.com/users/sohchatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohchatt/subscriptions","organizations_url":"https://api.github.com/users/sohchatt/orgs","repos_url":"https://api.github.com/users/sohchatt/repos","events_url":"https://api.github.com/users/sohchatt/events{/privacy}","received_events_url":"https://api.github.com/users/sohchatt/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T21:33:35Z","updated_at":"2016-11-14T21:33:35Z","body":"hi bgulrich,\r\n\r\nDropShadow is certainly not supposed to cause the performance issues you mention: this is something that we'd like to investigate further. Would it be possible for you to share a repro app (and information about the build you were running this on) so we may take a look?"}}
{"actor":{"display_login":"sohchatt"}}