Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: 23.04 Microstutter/dropping frames when playing games or watching videos

  1. #11
    Join Date
    Apr 2023
    Beans
    12

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    I thought it was a good idea to try out other options while while waiting for reply.
    Btw, I also try adding them separately. Adding xorg configs only cause tearing and stuttering. Adding the kernel parameter didn't seem to do anything.
    Thanks for helping anyway.

  2. #12
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Quote Originally Posted by benasd View Post
    I thought it was a good idea to try out other options while while waiting for reply.
    Btw, I also try adding them separately. Adding xorg configs only cause tearing and stuttering. Adding the kernel parameter didn't seem to do anything.
    Thanks for helping anyway.
    Good to know, thanks for the update.
    And while you wait, have you installed this one yet?
    Code:
    apt policy intel-media-va-driver-non-free
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  3. #13
    Join Date
    Apr 2023
    Beans
    12

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    I installed it, nothing seems to have changed.

    Code:
    $ sudo apt policy intel-media-va-driver-non-free
    intel-media-va-driver-non-free:
      Installed: 23.1.2+ds1-1
      Candidate: 23.1.2+ds1-1
      Version table:
     *** 23.1.2+ds1-1 500
            500 http://tw.archive.ubuntu.com/ubuntu lunar/multiverse amd64 Packages
            100 /var/lib/dpkg/status
    Edit: vainfo with non-free version
    Code:
    $ vainfo
    libva info: VA-API version 1.17.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_17
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.17 (libva 2.12.0)
    vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.2 ()
    vainfo: Supported profile and entrypoints
          VAProfileNone                   :    VAEntrypointVideoProc
          VAProfileNone                   :    VAEntrypointStats
          VAProfileMPEG2Simple            :    VAEntrypointVLD
          VAProfileMPEG2Simple            :    VAEntrypointEncSlice
          VAProfileMPEG2Main              :    VAEntrypointVLD
          VAProfileMPEG2Main              :    VAEntrypointEncSlice
          VAProfileH264Main               :    VAEntrypointVLD
          VAProfileH264Main               :    VAEntrypointEncSlice
          VAProfileH264Main               :    VAEntrypointFEI
          VAProfileH264Main               :    VAEntrypointEncSliceLP
          VAProfileH264High               :    VAEntrypointVLD
          VAProfileH264High               :    VAEntrypointEncSlice
          VAProfileH264High               :    VAEntrypointFEI
          VAProfileH264High               :    VAEntrypointEncSliceLP
          VAProfileVC1Simple              :    VAEntrypointVLD
          VAProfileVC1Main                :    VAEntrypointVLD
          VAProfileVC1Advanced            :    VAEntrypointVLD
          VAProfileJPEGBaseline           :    VAEntrypointVLD
          VAProfileJPEGBaseline           :    VAEntrypointEncPicture
          VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
          VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
          VAProfileH264ConstrainedBaseline:    VAEntrypointFEI
          VAProfileH264ConstrainedBaseline:    VAEntrypointEncSliceLP
          VAProfileVP8Version0_3          :    VAEntrypointVLD
          VAProfileVP8Version0_3          :    VAEntrypointEncSlice
          VAProfileHEVCMain               :    VAEntrypointVLD
          VAProfileHEVCMain               :    VAEntrypointEncSlice
          VAProfileHEVCMain               :    VAEntrypointFEI
          VAProfileHEVCMain               :    VAEntrypointEncSliceLP
          VAProfileHEVCMain10             :    VAEntrypointVLD
          VAProfileHEVCMain10             :    VAEntrypointEncSlice
          VAProfileHEVCMain10             :    VAEntrypointEncSliceLP
          VAProfileVP9Profile0            :    VAEntrypointVLD
          VAProfileVP9Profile1            :    VAEntrypointVLD
          VAProfileVP9Profile2            :    VAEntrypointVLD
          VAProfileVP9Profile3            :    VAEntrypointVLD
          VAProfileHEVCMain422_10         :    VAEntrypointVLD
          VAProfileHEVCMain422_10         :    VAEntrypointEncSlice
          VAProfileHEVCMain444            :    VAEntrypointVLD
          VAProfileHEVCMain444            :    VAEntrypointEncSliceLP
          VAProfileHEVCMain444_10         :    VAEntrypointVLD
          VAProfileHEVCMain444_10         :    VAEntrypointEncSliceLP
    Last edited by benasd; September 21st, 2023 at 06:01 PM.

  4. #14
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Quote Originally Posted by MAFoElffen View Post
    Which Model/Gen Intel CPU?
    If so, then do this:
    Code:
    apt list  intel-media-va-driver*
    Quote Originally Posted by 1fallen View Post
    You forgot this one:
    Code:
    apt list  intel-media-va-driver*
    Exactly the same between both. What did I miss? LOL. Not enough coffee? Too much?

    This bug says they fixed this in the the no-free and backported it...
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/2004237
    But apparently not(?)

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #15
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Quote Originally Posted by MAFoElffen;14158517
    This bug says they fixed this in the the no-free and backported it...
    [URL
    ]https://bugs.launchpad.net/ubuntu/+source/intel-media-driver/+bug/2004237[/URL]
    But apparently not(?)
    We're going to have fun with the next tw0 releases 23.04 and My Fav 23.10 (OP this not ready for prime time 23.10)
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  6. #16
    Join Date
    Apr 2023
    Beans
    12

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Is it missing a codec or something? Is my CPU, which is Ice Lake and not Raptor Lake, also affected by this bug?
    Does that bug report have anything to do with my problem?

    Quote Originally Posted by 1fallen View Post
    We're going to have fun with the next tw0 releases 23.04 and My Fav 23.10 (OP this not ready for prime time 23.10)
    Sorry I don't understand it quite well, are you saying that the bug won't be fixed even in 23.10?
    Last edited by benasd; September 21st, 2023 at 09:13 PM.

  7. #17
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Quote Originally Posted by benasd View Post
    Is it missing a codec or something? Is my CPU, which is Ice Lake and not Raptor Lake, also affected by this bug?
    Does that bug report have anything to do with my problem?


    Sorry I don't understand it quite well, are you saying that the bug won't be fixed even in 23.10?
    I test for different OS's, so I'm not recommending a Mantic upgrade 23.10, hope that helps
    If you really want to push it a bit use:
    Code:
    vainfo mpv somevideofile.mp4
    mpv will log that it's using VA-API. so mpv will need to be installed.
    EDIT A short clip of mine:
    Code:
    vainfo: VA-API version: 1.19 (libva 2.12.0)
    vainfo: Driver version: Mesa Gallium driver 23.1.7-1ubuntu1 for AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.54, 6.5.0-5-generic)
    vainfo: Supported profile and entrypoints
    Last edited by 1fallen; September 21st, 2023 at 09:23 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  8. #18
    Join Date
    Apr 2023
    Beans
    12

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Code:
    vainfo: VA-API version: 1.17 (libva 2.12.0)
    vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.2 ()
    vainfo: Supported profile and entrypoints
    It says using vaapi on my machine. I don't the bug report is related to mine.
    Code:
    $ mpv Downloads/file_example_MP4_1920_18MG.mp4 
     (+) Video --vid=1 (*) (h264 1920x1080 30.000fps)
     (+) Audio --aid=1 (*) (aac 2ch 48000Hz)
    Using hardware decoding (vaapi).
    AO: [pipewire] 48000Hz stereo 2ch floatp
    VO: [gpu] 1920x1080 vaapi[nv12]
    AV: 00:00:30 / 00:00:30 (99%) A-V:  0.000
    
    Exiting... (End of file)
    I haven't gotten an error from then beginning, only microstuttering when playing game and watching video.
    Last edited by benasd; September 21st, 2023 at 09:51 PM.

  9. #19
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    No. I posted that to demonstrate that the drivers are maintained, recently updated, and backported.

    Stutter in games happen for the following reasons:
    1. CPU core / thread count and or CPU load high. This includes a power profile that may be limiting the active cores being utilitized.
    2. RAM capacity. This could be high usage by other things, low capacity, single/instead of dual channel memory being utilized. Virtual memory being located on less than SSD type storage. Optimal, over 16GB Dual channel 2x*GB or larger)
    3. Hard disk type. Game loaded on less than SSD storage, were read/write speed is low. Optimal SSD for OS, another SSD for installing games.
    4. Poor Optimization. This falls into three areas. First is that your have your system setup well. Second, is that the game itself is setup well. Third-- You have no control over, a poorly coded game-code, which no matter what system it is ran on, it is going to run poorly with stutter.
    5. Driver settings. This starts with the correct drivers working, with kernel settings set to correct and optimise that driver for the hardware combination(s) and for the specific game.
    6. BIOS Options. Depending on the motherboard, some boards have setting asking what kind of CPU cooler you have, if you can unlock and overclock your CPU, if you want to display video at 4k, if you have SMART memory capable RAM, etc.

    As you can see, there are a lot of things that can cause stuttering, besides just the graphics driver. For example, if you have a laptop and you have the System power profile set to power-saving, if will limit the power cap on the CPU and GPU, and cause stuttering. To check what your power profile is set to, do
    Code:
    powerprofilesctl list
    What it possible will be listed. What it is set to will be indicated by an asterist (*).

    Your CPU is an Intel i5-1035G1 (Ice Lake) which is a laptop GPU, rated in the lower end of the middle range for CPU's when it was released. Even though it can display 4k, and you can play Grand Theft Auto V with it... you have to set the resolution to 720P, and the graphics quality to low or medium to get a stable 30-40fps experience in the game. That is just the limitations of that iGPU.

    But you have a point to compare it with already, you said it already "worked fine" until things were updated... That is the same problem I am having with a newer iGPU with a newer third party Intel XE Driver which I have a Bug filed with Intel on...

    I think your's may be finding a happy combination of the kernel (with the correct parameters/options), mesa, and the intel driver.

    My server has the same Generation Intel, but is i9-10900, unlocked, 128GB Gaming RAM, with the power profile set to performance... So hard to compare that, because it is not having issues for other reasons.

    I did check this fix for Tiger Lake's (11th Gen) having troubles with Mesa in Games, to see if it work's with Comet Lake (10Th Gen)... I tried it on mine... Try
    Code:
    sudo sysctl dev.i915.perf_stream_paranoid=0
    If that works, to make it persistent, add a cron job with
    Code:
     sudo crontab -e
    # Add the following line at the end or as the 1st no comment line:
        @reboot /sbin/sysctl -w dev.i915.perf_stream_paranoid=0
    EDIT --
    I forgot to mention... these are the i915 related kernel parameters that I have in my GRUB_CMDLINE_LINUX_DEFAULT line:
    Code:
    i915.enable_gvt=1 i915.enable_guc=2 i915.enable
    Last edited by MAFoElffen; September 22nd, 2023 at 12:06 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  10. #20
    Join Date
    Apr 2023
    Beans
    12

    Re: 23.04 Microstutter/dropping frames when playing games or watching videos

    Quote Originally Posted by MAFoElffen View Post
    Stutter in games happen for the following reasons:
    1. CPU core / thread count and or CPU load high.
    Yes it is a low end CPU, but it shouldn't have problem playing 720p 60fps YouTube videos. However, I get much more stuttering when moving cursor around, and thread 2 was running at 100% when playing video.
    I'm also getting 70% on thread 1 when idle with firefox. 20% with only terminal running.
    Quote Originally Posted by MAFoElffen View Post
    2. RAM capacity. 3. Hard disk type.
    DDR4 3200mHz dual channel 4*2GB shouldn't be a problem, It's barely even using half of the ram.
    Fairly decent pcie gen3x4 SSD (around 3000MB r/w)
    Quote Originally Posted by MAFoElffen View Post
    4. Poor Optimization.
    This could be the problem, I'm getting 70% on thread 2 when idle. IDK why.
    Quote Originally Posted by MAFoElffen View Post
    a poorly coded game-code
    I don't have this issue on other distros. I'm also getting stuttering when watching 1080p or 720p YT videos.

    Code:
    $ powerprofilesctl list
    * performance:
        Driver:     intel_pstate
        Degraded:   no
    
      balanced:
        Driver:     intel_pstate
    
      power-saver:
        Driver:     intel_pstate
    It was already on performance mode. I also tried force boosting with cpu-autofreq, no luck.

    Code:
    sudo sysctl dev.i915.perf_stream_paranoid=0
    Nothing seems to have changed with this command.
    Code:
    i915.enable_gvt=1 i915.enable_guc=2 i915.enable
    Same result with kernel parameter.

    I think my CPU thread 1 is suspicious, maybe it's the problem?
    Note that i have the problem with fresh install

    Edit: I just test it with Nobara linux(a Fedora based distro) that is installed on external drive. I'm also getting same cpu usage (very high on thread 1) and same clock speed but no stuttering on Nobara. This is very confusing.
    Attached Images Attached Images
    Last edited by benasd; September 22nd, 2023 at 07:00 AM.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •