OpenTreeOfLife / opentree

Opentree browsing and curation web site. For overarching or cross-repo concerns, please see the 'germinator' repo.
http://tree.opentreeoflife.org/
BSD 2-Clause "Simplified" License
109 stars 26 forks source link

Intermittent paint bug in the synth-tree viewer #601

Open jimallman opened 9 years ago

jimallman commented 9 years ago

Happens in Chrome only? Visual "tearing" in the property inspector. This is cleaned up by any forced redraw of the page.

Possibly caused by simultaneously drawing while the inspector slides (animates) across the page? Removing this animation might fix the problem.

pmidford commented 9 years ago

Didn't happen in Firefox or Safari. Are there any browser settings I should explore?

jimallman commented 9 years ago

Are there any browser settings I should explore?

It's possible that un-checking this box would fix the problem:

Chrome > Settings > Advanced > System > [ ] Use hardware acceleration when available

... but that requires a restart, so the problem is likely to disappear. But worth a try if you can reproduce this on demand.

There are also some diagnostic tools we can use when we see this happening:

http://updates.html5rocks.com/2013/02/Profiling-Long-Paint-Times-with-DevTools-Continuous-Painting-Mode

https://developer.chrome.com/devtools/docs/rendering-settings

pmidford commented 9 years ago

Turning off the acceleration seems to make the page render properly most of the time; but cursoring (no clicks) over either the Legend or Zoom Tree View buttons causes the misrendering to appear in cases where the page initially loads. Actually moving over the Legend button causes only the first two letters of the taxon name to shift over, rather than the entire name, which is the effect when either moving over the Zoom Tree Button or if the page loads improperly. I'll take a look at the tools you linked.

jimallman commented 9 years ago

Hm, I'm seeing this in Chrome with no animation at all. Note the stale junk (top half of name is new): screen shot 2015-02-19 at 4 02 24 pm