<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>465639</bug_id>
          
          <creation_ts>2023-02-12 20:39:19 +0000</creation_ts>
          <short_desc>High CPU usage after starting Plasma</short_desc>
          <delta_ts>2023-04-06 15:17:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>compositing</component>
          <version>5.27.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=452119</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Tareque Md Hanif">tarequemd.hanif</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>tarequemd.hanif</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2207341</commentid>
    <comment_count>0</comment_count>
    <who name="Tareque Md Hanif">tarequemd.hanif</who>
    <bug_when>2023-02-12 20:39:19 +0000</bug_when>
    <thetext>It&apos;s taking almost 60% CPU after starting Plasma from tty with startx.
There is a workaround, If I go to system settings, and set Vsync to anything else, the CPU spike stops.
The Vsync option was on &quot;Automatic&quot;, so I change it to &quot;Only when cheap&quot;, then it gets fixed.
If the Vsync option was on &quot;Only when cheap&quot;, if I change it to &quot;Automatic&quot;, it gets fixed.
I can see in htop that kwin_x11 is taking 50-60% CPU when the issue arises.

I can help by providing any profiling or other information.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: kernel 6.1.11-arch1-1
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION:
GPU: Intel HD Graphics 620</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208809</commentid>
    <comment_count>1</comment_count>
    <who name="Tareque Md Hanif">tarequemd.hanif</who>
    <bug_when>2023-02-17 10:42:11 +0000</bug_when>
    <thetext>I just updated Plasma to 5.27 on my laptop. And I see the same high CPU usage. But this time when I changed the &quot;Latency&quot; setting in the Compositor settings to &quot;Balance of latency and smoothness&quot;. By default it was &quot;Force smoothest animations&quot;. The VSync option is not there anymore.
As this commit (https://invent.kde.org)/plasma/kwin/-/commit/cf583aa3673cfca275b64d25c457d9e4a298c46c) suggests, I am guessing this will be fixed in Plasma 6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208810</commentid>
    <comment_count>2</comment_count>
    <who name="Tareque Md Hanif">tarequemd.hanif</who>
    <bug_when>2023-02-17 10:43:39 +0000</bug_when>
    <thetext>(In reply to Tareque Md Hanif from comment #1)
&gt; I just updated Plasma to 5.27 on my laptop. And I see the same high CPU
&gt; usage. But this time when I changed the &quot;Latency&quot; setting in the Compositor
&gt; settings to &quot;Balance of latency and smoothness&quot;. By default it was &quot;Force
&gt; smoothest animations&quot;. The VSync option is not there anymore.
&gt; As this commit
&gt; (https://invent.kde.org)/plasma/kwin/-/commit/
&gt; cf583aa3673cfca275b64d25c457d9e4a298c46c) suggests, I am guessing this will
&gt; be fixed in Plasma 6.

Sorry, commit link corrected.
https://invent.kde.org/plasma/kwin/-/commit/cf583aa3673cfca275b64d25c457d9e4a298c46c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2208987</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-17 18:30:18 +0000</bug_when>
    <thetext>So when you change the latency setting to &quot;Balance of Latency and Smoothness&quot;, the issue goes away?

FWIW I have the same GPU and can&apos;t reproduce the issue. Can you attach the contents of Info Center &gt; Graphics &gt; Window Manager?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211833</commentid>
    <comment_count>4</comment_count>
    <who name="Tareque Md Hanif">tarequemd.hanif</who>
    <bug_when>2023-02-26 09:07:39 +0000</bug_when>
    <thetext>&gt; So when you change the latency setting to &quot;Balance of Latency and Smoothness&quot;, the issue goes away?
Yes. Here is the output of &quot;Window Manager&quot; in Info Center.
https://invent.kde.org/-/snippets/2516</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215755</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-03-13 03:45:19 +0000</bug_when>
    <thetext>Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218849</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-03-28 03:45:43 +0000</bug_when>
    <thetext>This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED &gt; WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220694</commentid>
    <comment_count>7</comment_count>
    <who name="Tareque Md Hanif">tarequemd.hanif</who>
    <bug_when>2023-04-05 21:54:59 +0000</bug_when>
    <thetext>Fixed by removing picom.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2220807</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-04-06 15:17:00 +0000</bug_when>
    <thetext>What is picom? This thing? https://github.com/yshui/picom</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>