Bug 171281 - Krunner is very slow when it should show some icons
Summary: Krunner is very slow when it should show some icons
Status: RESOLVED UPSTREAM
Alias: None
Product: krunner
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-18 17:07 UTC by Unknown
Modified: 2010-05-21 20:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2008-09-18 17:07:17 UTC
Version:            (using KDE 4.1.1)
Compiler:          gcc 
OS:                Linux
Installed from:    SuSE RPMs

When I press Alt+F2, Krunner shows up and I start to type.
After 3 letters it starts an animation (an expanding effect), but that is very-very slow.
It tooks about 2-3 seconds while the icons show.
During I see that an icon appears on right side, moves to left, then in two steps it locates itself in the right position.

I'm using openSUSE 11.0 with KDE 4.1.1 from KDE:KDE4:Factory:Desktop repositoy.
Comment 1 Dmitry Suzdalev 2008-10-22 20:58:48 UTC
Please provide us with the following info:

What video card do you have?
What X driver do you use?
Comment 2 Unknown 2008-10-22 21:14:01 UTC
/proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86 Kernel Module  177.80  Wed Oct  1 14:38:10 PDT 2008
GCC version:  gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)

/proc/driver/nvidia/cards/0
Model:           GeForce 8400M GS
IRQ:             16
Video BIOS:      60.86.42.00.34
Card Type:       PCI-E
DMA Size:        40 bits
DMA Mask:        0xffffffffff
Bus Location:    01.00.0

/proc/driver/nvidia/registry
EnableVia4x: 0
EnableALiAGP: 0
NvAGP: 3
ReqAGPRate: 15
EnableAGPSBA: 0
EnableAGPFW: 0
Mobile: 4294967295
ResmanDebugLevel: 4294967295
RmLogonRC: 1
ModifyDeviceFiles: 1
DeviceFileUID: 0
DeviceFileGID: 33
DeviceFileMode: 432
RemapLimit: 0
UpdateMemoryTypes: 4294967295
UseVBios: 1
RMEdgeIntrCheck: 1
UsePageAttributeTable: 4294967295
EnableMSI: 0

/proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     T5250  @ 1.50GHz
stepping        : 13
cpu MHz         : 1000.000
cache size      : 2048 KB
[...]

/var/log/Xorg.0.log
X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
[...]
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Enabling RENDER acceleration
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0):     enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 8400M GS (G86M) at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 262144 kBytes
(--) NVIDIA(0): VideoBIOS: 60.86.42.00.34
(II) NVIDIA(0): Detected PCI Express Link width: 16X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
[...]

The icons show relatively fast. Only the expand effect is slow when the "text-area" transforms to and "icon container".
Like it does everything four times. After writing something into it, its first size will be let's say 100px (the container part is gray). Then immediately it streches to 101px, then 102px, and finally to 103px. And only then becomes it to the normal black (from gray) and shows the icons.
Comment 3 Dmitry Suzdalev 2008-10-22 21:34:43 UTC
OK, you're using the newest driver :) So am I.
I also have a composite effects enabled. Do you?

Can you also try to issue the following command in console:
nvidia-settings -a InitialPixmapPlacement=2 -a GlyphCache=1

and then try krunner again.

I have it running pretty fast, btw. It was slow before i updated driver...
Comment 4 Unknown 2008-10-23 00:46:47 UTC
It is all the same when I use effects or not.

I had executed the command you said, then I logged out (so the X server was restarted), but the problem still exists.

It looks like the panel draws the first 100px and then it streches pixel by pixel three times.
Comment 5 Dmitry Suzdalev 2008-10-23 09:35:19 UTC
Actually you shouldn't restart X :)
That command modifies running session parameters that are reset after you restart...
Comment 6 Unknown 2008-10-23 10:02:48 UTC
Whooo-hooo :D Insane speed, really!
Thank you.

So, yesterday I executed this command and tried the KRunner. Nothing changed. That's why I thought I should restart X.

But today it worked. Exactly the "InitialPixmapPlacement=2" is the key, in this case the "GlyphCache" has no role. Setting the former to 1 or 0 slows down the window again.
And sometimes it works and sometimes not. For exmaple in this moment it's slow again, but the values are correct. Maybe I have to write to NVIDIA.
Comment 7 Dmitry Suzdalev 2008-10-23 10:10:59 UTC
Hurray! That's great news :)
So this is kind of nvidia driver issue.
And nvidia-settings tweaks help to improve perfromance.

But still, i don't know what to do with this bug because for example there's still a little slowness on intel driver... (not very slow, but still noticable).

Perhaps we should somehow optimise this window expansion to work even more faster...
Comment 8 Unknown 2008-11-16 12:13:38 UTC
With the NVIDIA driver 180.06 beta this issue goes away. No need to set InitialPixmapPlacement=2 (which actually horribly slowed down Opera).
Comment 9 Gregor Petrin 2009-02-10 12:46:13 UTC
I get this problem with an ATI card, using the fglrx driver (X version 1.5.2, Radeon Mobility M300, OpenSuse 11.1) :(

A suggestion: if the user presses enter, could the first option be selected and run, and the animation interrupted? Because often I know exactly what I want to open and just type a few letters + enter. But because of the slow animation opening, I have to wait for those few seconds and it's very annoying.

Comment 10 Terényi, Balázs 2009-05-07 11:34:53 UTC
Same problem here with "NVIDIA UNIX x86_64 Kernel Module 173.14.18".
"nvidia-settings -a InitialPixmapPlacement=2" makes it faster but that causes some other problems.

I wish I could turn the animation off from the settings User interface tab :)
Comment 11 Jacopo De Simoi 2010-01-09 12:10:10 UTC
much changed since back then; any feedback with recent kde/nvidia drivers versions?
Comment 12 Terényi, Balázs 2010-02-23 15:52:50 UTC
Nothing changed with KDE SC 4.4 and the same nvidia driver. It's much faster with "nvidia-settings -a InitialPixmapPlacement=2"