https://bugs.kde.org/show_bug.cgi?id=512007

            Bug ID: 512007
           Summary: Excessive delays when opening windows
    Classification: Plasma
           Product: plasmashell
      Version First 6.4.5
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: grave
          Priority: NOR
         Component: Activities in general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

Created attachment 186732
  --> https://bugs.kde.org/attachment.cgi?id=186732&action=edit
recording of a measurement trial

SUMMARY
When opening software with a GUI, the window takes an excessively long time to
open.

STEPS TO REPRODUCE
1. Open an empty text file

OBSERVED RESULT
Opening the empty text file takes about 0.291s.

EXPECTED RESULT
Opening an empty text file should take approximately 0.130s as reported by the
'time' terminal command.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2

ADDITIONAL INFORMATION
I'm using an empty text file as the primary example of excessively delayed
window openings due to its lightweight nature, however, this problem applies to
all pieces of software, not just text editors.
The text editor I'm using is gedit. Its startup time is either lower or
equivalent to other popular text editors.

Using the 'time xdg-open' command to open an empty text file repeatedly gives a
'real' median value of about 0.130s. This value is probably a good indication
of how long it should take to open a plain text document, but it is not the
actual value of this task. To determine the actual time it takes to open an
empty text file, I have performed the following test:
With a stopwatch running, the 'xdg-open' command is used to open the text file
in gedit. This process is recorded at 120 FPS using OBS. Going through the
recording frame by frame, it can be seen almost exactly when the command is
sent to Konsole and when the window of gedit has opened. Subtracting the former
from the latter gives the time it takes to open the text file.

Side note: Opening a text file (or any other window) by using enter or
double-clicking it will make the program appear significantly earlier in Task
Manager, but the total opening time of the window is about the same as when
opening it with Konsole.

Due to frame time variations and other fluctuations, I ran 10 trials of the
test in order to arrive at a reliable typical (median) value.
Here are the results of those trials:
0.291s
0.276s
0.291s
0.297s
0.285s
0.283s
0.305s
0.305s
0.284s
0.301s

min: 0.276s
max: 0.301s
median: 0.291s

I have attached a recording of one of the trials to this bug report.
Explanation:
The terminal command text goes from highlighted to normal at 10:53.083. That's
when enter is pressed.
At 10:53.384 the window has opened.
The time delay is therefore 0.384s - 0.083s = 0.301s.

These are the times I've measured for other programs (1 trial each):
KolourPaint: 0.194s
Kate (no document): 0.208s
LibreOffice Calc (no document) (window opened but blank): 0.262s
Calculator (gnome-calculator): 0.313s
LibreOffice Calc (no document) (everything loaded): 0.334s
Kate (empty document): 0.339s
mpv (no file): 0.395s
System Monitor: 0.403s
System Settings: 0.406s
Dolphin: 0.514s
Steam Friends List: 1.181s

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to