User forums > Using Code::Blocks

Slow scrolling? [Ubuntu]

<< < (9/22) > >>

dmoore:

--- Quote from: oBFusCATed on July 22, 2012, 05:56:08 pm ---What are the steps to reproduce the slow scrolling?
On my machine gentoo 64bit+core2quad+nvidia binary scrolling is responsive and non-laggy.

--- End quote ---

Wouldn't be surprised if it was a Ubuntu problem.

To reproduce:
1. Open a large cpp file with lots of text on each line
2. Compare
a. Ripping the mouse wheel really quickly
b. Moving the mouse wheel slowly the same distance
3. Hold down arrow for about 10s. When you release scrolling will continue for several seconds.

My desktop is 2 yo dual core, older nvidia card. Ubuntu 12.04

dmoore:

--- Quote from: jens on July 22, 2012, 07:00:25 pm ---
If we do so, we should post it in wxWidgets mailing list also, because it's a wxWidgets patch and not a C::B patch.
And it only affects the scrolling with the mouse-wheel and not the scrolling at all.

--- End quote ---

Agree on both counts.

Perhaps a better fix than my first suggestion would be to put a cap on how many mousewheel events get queued. Events should only be discarded after exceeding a decent threshold. (Should be willing to trade off a little lag).

Jenna:
A little test from my side:

* I always use te same c++ source file,
* I place the caret in the first line and scroll down with the arrow key until line 350,
* if I release the arrow key the editor does not stop scrolling for about 350~450 lines (!) (scrolling stops if the caret is somewhere between line 700 and 800).
* This happens for the first time I scroll it, if I do it a second time, scrolling is way faster and scrolling stops immediately.
So it looks like it's obviously related to doing the text layout in scintilla.
But the obvious is not necessary the truth, so further investigation is needed.

By the way making the amount of lines per wheel-click configurable is a good thing in my opinion.
Shall I prepare a patch for it ?

oBFusCATed:

--- Quote from: jens on July 23, 2012, 11:40:07 am ---By the way making the amount of lines per wheel-click configurable is a good thing in my opinion.
Shall I prepare a patch for it ?

--- End quote ---
I think the problem with the scrolling is that there is no acceleration, not that the scrolling is slow.
At least firefox seems to have some acceleration in it, but I may be wrong as my mouse doesn't have a lock which limits the rotations (the mechanism making the mouse click when scrolling).

MortenMacFly:

--- Quote from: jens on July 23, 2012, 11:40:07 am ---Shall I prepare a patch for it ?

--- End quote ---
Feel free to do. I have some changes related to wxScintilla pending, but I can handle...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version