{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/5704","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/5704/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/5704/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/5704/events","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/5704","id":275014171,"number":5704,"title":"\"Clear\" stencil buffer manually; workaround for #5490","user":{"login":"lbud","id":3170312,"avatar_url":"https://avatars1.githubusercontent.com/u/3170312?v=4","gravatar_id":"","url":"https://api.github.com/users/lbud","html_url":"https://github.com/lbud","followers_url":"https://api.github.com/users/lbud/followers","following_url":"https://api.github.com/users/lbud/following{/other_user}","gists_url":"https://api.github.com/users/lbud/gists{/gist_id}","starred_url":"https://api.github.com/users/lbud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbud/subscriptions","organizations_url":"https://api.github.com/users/lbud/orgs","repos_url":"https://api.github.com/users/lbud/repos","events_url":"https://api.github.com/users/lbud/events{/privacy}","received_events_url":"https://api.github.com/users/lbud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-17T22:22:35Z","updated_at":"2018-02-06T09:28:25Z","closed_at":"2017-11-17T22:33:57Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/5704","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/5704","diff_url":"https://github.com/mapbox/mapbox-gl-js/pull/5704.diff","patch_url":"https://github.com/mapbox/mapbox-gl-js/pull/5704.patch"},"body":"As of Chrome v62, depth reads in certain Intel Iris graphics cards (at least Intel Iris Graphics 6100) all fail on intermittent frames, creating a flashing effect as in https://github.com/mapbox/mapbox-gl-js/issues/5490. I believe this bug is some kind of race condition or incorrect vector access related to stencil buffer clearing. This PR mitigates this issue pending an upstream fix by never using `gl.clear(gl.STENCIL_BUFFER_BIT)` and instead \"clearing\" it manually by drawing a stencil mask of all 0s to the full viewport. I've confirmed on maps where this effect is most dramatic (maps with many sources) that this fix eliminates flashing entirely.\r\n\r\nFixes #5490.\r\nUpstream issue: https://bugs.chromium.org/p/chromium/issues/detail?id=784030"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/363362441","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/5704#issuecomment-363362441","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/5704","id":363362441,"user":{"login":"SBRK","id":119354,"avatar_url":"https://avatars3.githubusercontent.com/u/119354?v=4","gravatar_id":"","url":"https://api.github.com/users/SBRK","html_url":"https://github.com/SBRK","followers_url":"https://api.github.com/users/SBRK/followers","following_url":"https://api.github.com/users/SBRK/following{/other_user}","gists_url":"https://api.github.com/users/SBRK/gists{/gist_id}","starred_url":"https://api.github.com/users/SBRK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBRK/subscriptions","organizations_url":"https://api.github.com/users/SBRK/orgs","repos_url":"https://api.github.com/users/SBRK/repos","events_url":"https://api.github.com/users/SBRK/events{/privacy}","received_events_url":"https://api.github.com/users/SBRK/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T09:28:25Z","updated_at":"2018-02-06T09:28:25Z","author_association":"NONE","body":"@lbud yep I know we had this problem and it was affecting half the computers in our company :) But it seemed to me the performance was slightly worse after updating. It could just be an impression though"}}
{"actor":{"display_login":"SBRK"}}