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

            Bug ID: 529053
           Summary: Default 1 ms safety margin drops frames on a 165 Hz
                    Intel laptop panel
    Classification: Plasma
           Product: kwin
      Version First 6.8.3
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-drm
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
On my laptop that has a built-in 165 Hz screen, KWin often shows frames one
refresh late, which I measured through KWin's performance log. 
I checked that render time isn't what makes them late, as rendering was fast
about say 1-1.5 ms per frame

Setting KWIN_DRM_OVERRIDE_SAFETY_MARGIN=2500 fixes it almost completely, and it
didn't affect power usage as far as I measured. 
I think the 1 ms default margin seems too small for i915 here; Havent' checked
with 1.5 ms

STEPS TO REPRODUCE
1. Start a Plasma wayland session with KWIN_LOG_PERFORMANCE_DATA=1 
2. Run a steady fullscreen animation in a browser for some approx 5 minutes
3. Count the frames whose pageflip came at least one refresh after the target
(it's in CSV that KWin writes as perf statistics)
4. Repeat for KWIN_DRM_OVERRIDE_SAFETY_MARGIN=2500 and compare with above.

OBSERVED RESULT
KWin version, margin, fps, frames late
6.8.3, 1 ms (default) , 154 fps, 5.2%
6.8.3, 2500 us, 165 fps, 0.02%
6.8.2, 1 ms (default) , 146 fps, 12.9%

CPU package power stayed the same regardless of any override

EXPECTED RESULT
Close to 165 fps with almost no late frames when using the default margin.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 45 (KDE Plasma Desktop Edition)
KDE Plasma Version: 6.8.3
KDE Frameworks Version: 6.32.0
Qt Version: 6.11.2
Additional versions: Kernel 7.3.4, Mesa 26.2.6, Intel Core Ultra 7 255H (Arrow
Lake, i915), internal 165 Hz eDP panel, NVIDIA dGPU suspended, PSR off
(i915.enable_psr=0)

ADDITIONAL INFORMATION
Believing it's possibly related in bug 490358 (Intel stutter that is another
Arrow Lake laptop in
comment 26)

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

Reply via email to