Bug 489454 - Views update slowly when they have focus making everything go slowly.
Summary: Views update slowly when they have focus making everything go slowly.
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 8.8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-11 13:56 EST by Stu Mising name CLA
Modified: 2020-09-04 15:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stu Mising name CLA 2016-03-11 13:56:48 EST
I've noticed this now with two views, so I think it may be a systemic problem rather than just an issue with a particular view.

It probably doesn't help that I have a 4k monitor but I do and it's the future so others will run into this eventually.

I am using gtk2 because it fixes other problems...
export SWT_GTK3=0

but I saw this too when I was using gtk3.

So here are the examples:

If I debug a program that outputs data to stdout (no stopping on breakpoints) and that output is going to the console view, if the cursor focus is on that console view the output goes by very slowly and it slows down the run of the program. If I click any other view or I hit ctrl-f to make the find window pop up, and therefore get focus, the console output starts flying.

Similarly if I do a clean-all so cdt recompiles everything, and the compile output is updating the console view, the compile runs much much faster if I set the focus to any view other than that build output console. If I shift focus away from eclipse entirely, it will still run slowly. It has to do with the view focus, not the window. (which seems kind of odd, since the find window getting focus will speed it up as well...)


The other more intriguing scenario is this:

While I am debugging, after having stopped on a breakpoint, and I am hitting f5, f6, f7 to trace through the code, if the focus is on the editor window where the debugging is happening, there's a noticeable (few hundred ms) lag between when I hit the key, the debug-current-line highlight goes away, the editor pane scrolls, and when it re-hilights the next line.

If however, I set focus to the variables pane and do the same f5, f6 or f7, the response is instant. Like immediate. All debugging updating is super snappy.

It seems to be an issue tied to updating whatever pane has focus. If that pane is doing updating while it has focus, it slows down A LOT.

I can't think of other cases where my interaction with eclipse isn't in the window I have focus on, or where I can get eclipse to update a view that I don't have focus on, so I don't know what else to test.

But I'd happy to try any tests you can think of.