ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

Scroll Flickering and Performance

Open keeper3000 opened this issue 12 years ago • 5 comments

Vertical scrolling results in flickering. This is very noticeable on your 'ALL Features' grid located here: http://ui-grid.info/docs/#/tutorial/401_AllFeatures

In addition, the flickering is also a problem on a grid with only 190 rows. Is this a "feature" or can we expect to see smoother scrolling with the final copy. The bind performance seems great!

Just in case it's relevant here are my specs. Browser: Chrome 38.0.2 Angular: 1.3.0-rc4 UI-Grid: rc12 CPU: 8 cores 16gb ram Video Card: Radeon HD 8570 and Intel HD 4600

keeper3000 avatar Oct 17 '14 15:10 keeper3000

We should expect smoother scrolling with the final, and there is active work going on. At the moment we're re-rendering the full DOM on each scroll event. There are approaches to get around that, but they don't necessarily play nice with cellClasses.

The feature that causes the most impact on scrolling is the subgrid/expandable grid feature. But I've noticed that some of the other features aren't necessarily following the intent in staying away from watchers....I suspect that will all features enabled we're taking quite a lot of load on each digest cycle. We probably need to squeeze that out too.

So consider it a work in progress.

PaulL1 avatar Oct 17 '14 21:10 PaulL1

+1 on this - the changes @PaulL1 suggest sound promising. I've noticed our grid, which only has 100 or so rows (with 15 displayed at any time) and 12 columns, is performing a bit worse in this regard than the documented examples. It just makes it look a bit cheap, and end users are sure to complain about it!

marcuswhit avatar Nov 12 '14 17:11 marcuswhit

@c0bra's changes are very promising. The vertical scroll is pretty good on that branch, the horizontal had some issues but I think we were close to finding a way around it.

PaulL1 avatar Nov 12 '14 21:11 PaulL1

We have merged the trackby changes, which I think has resolved most scrolling issues. Does this also sort your issues @keeper3000 @marcuswhit?

PaulL1 avatar Dec 10 '14 07:12 PaulL1

@PaulL1 Yes, this seems a lot better now, thanks!

marcuswhit avatar Dec 17 '14 09:12 marcuswhit