-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Highlight Active Line significantly slows down selection #4778
Comments
To @RaymondLim, medium priority. @ingorichter noticed this as well. |
@RaymondLim, I tested my fix for #3191 on this bug as well. It appears to help, but have you also noticed that the current Dev build has much slower selection than Sprint 29? Try running this repro in Sprint 29. It is nice and smooth for me. When I try the same thing in the current build it is jerky. It feels slow even when highlight active line is turned off. I'm using Windows 7. |
@lkcampbell |
@RaymondLim, my fix is available but it only makes the worst case scenario slightly better. This isn't just a problem with selection, it is a problem with any cursor movement. Try doing a repeating set of regular down arrow keys with the Active Line Highlight on, then compare it to Sprint 29. I originally thought my fix was causing this performance problems because I added a cursorActivity handler, but these problems were there before my fix. I haven't investigated thoroughly yet, but I wonder if we introduced some new, slow cursorActivity event handler recently, or maybe CodeMirror changed something. My best guess is that it is cursorActivity related. |
@lkcampbell |
@RaymondLim - could you open a separate bug for the cursor movement slowness? Thanks. |
If it depends on brackets-shell and not the actual www content, then we can probably rule out cursorActivity handlers. We might be looking at something similar to the inexplicable frame-dropping we saw with cursor movement / selection on Windows way back with CEF 1... not fun. Sprint 30's CEF changes the rendering pipeline a lot, so unfortunately this isn't super surprising. Sprint 30 adds GPU acceleration and threaded compositing, just like current desktop Chrome. So one question would be, if you resize an in-browser CodeMirror instance to a similar size does it show the same rendering performance problems? |
@njx and @RaymondLim, even thought this issue spawned several other issues, the original issue, as described above, should be addressed by the "hide highlight when editor has selection" fix that was merged above. So you can probably change this issue to FBNC. |
@lkcampbell - I agree with you. Even with the highlight active line on, it's now hard to notice the slowness. The only time I can feel the slowness is both Highlight Active Line and Word Wrap are on and the cursor is passing thru wrapped lines and non-wrapped lines. So FBNC to @njx |
I am seeing the same problem without Shift key held down, and it doesn't sound like the "hide highlight when editor has selection" would fix this case. |
Agreed, doesn't seem noticeable to me now. Closing. |
Result: Selection extension is much slower with Highlight Active Line on. Other selection methods, like drag select, are more sluggish as well, but it's most obvious when you hold down Shift-Down/Up Arrow.
The text was updated successfully, but these errors were encountered: