Planes, Trains, and Stuttering in 3d Games

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lichtenstein
    Phoronix Member
    • Nov 2018
    • 81

    Planes, Trains, and Stuttering in 3d Games

    Hi all,
    Long time linux user but a linux gaming newbie here. I've a new machine (ryzen 2700x, vega 56, 32gb 3200 DDR4 cl16 ram, evo 970 ssd). I got (after many different experiments, manjaro, kubuntu old and new, different kernels and padoka/oibaf/x-swat etc.) xubuntu 18.04.1 running on it with latest 4.19.5 kernel and the padoka ppa. I get about 65 fps in Unigine Superposition's 1440p medium test, no stutter there (it is opengl). The desktop is very responsive, tear, and glitch free and the system is fast and stable.

    The problem that I'm seeing is game stuttering (extreme fps drops) in some games (I've tried Serious Sam 3 BFE from steam and Shadow of the Tomb Raider via wine). It isn't the graphics card because I lowered the resolution and detail to ridiculous levels and still get the same kind of stuttering (while getting very high average fps).

    So it's gotta be the CPU then. The internet says that the governor needs to be set to "performance", did that - didn't help. The internet says this mostly happens to Vulkan games because the load is spread more evenly and the OS/kernel is turbo-ing down the cores. I'd like to confirm this, how can I run SS3 in opengl?

    Anyway, I'd be grateful for any advice. Here is more info about my system. Notice how the cpu clock is at 2430MHz! What causes such fluctuation? If it goes up and down like this, no wonder games stutter... The 2700X is supposed to start at 3700 and would XFR2 up to 4300 single (and about 4000-4100 multi which I could observe during a large scale 7zip compressing session). Stock cooler (for now). Temps via sensors look ok, see below (that's idle, for sure but I checked during that 7za, the temps were ok and all cores were moving around 4100):
    Code:
    System:    Host: random Kernel: 4.19.5-041905-generic x86_64 bits: 64 Desktop: Xfce 4.12.3
               Distro: Ubuntu 18.04.1 LTS
    Machine:   Device: desktop Mobo: ASUSTeK model: ROG STRIX X470-F GAMING v: Rev X.0x serial: N/A
               UEFI: American Megatrends v: 4024 date: 09/07/2018
    CPU:       8 core AMD Ryzen 7 2700X Eight-Core (-MT-MCP-) speed/max: 2430/3700 MHz
    Graphics:  Card: Advanced Micro Devices [AMD/ATI] Vega [Radeon RX Vega]
               Display Server: x11 (X.Org 1.19.6 ) drivers: ati,amdgpu (unloaded: modesetting,fbdev,vesa,radeon)
               Resolution: [email protected]
               OpenGL: renderer: Radeon RX Vega (VEGA10, DRM 3.27.0, 4.19.5-041905-generic, LLVM 8.0.0)
               version: 4.5 Mesa 19.0.0-devel - padoka PPA
    Network:   Card: Intel I211 Gigabit Network Connection driver: igb
    Drives:    HDD Total Size: 500.1GB (49.5% used)
    Info:      Processes: 325 Uptime: 13 min Memory: 2266.5/32160.5MB Client: Shell (zsh) inxi: 2.3.56
    Code:
     `sensors`
    asus-isa-0000
    Adapter: ISA adapter
    cpu_fan:        0 RPM
    
    amdgpu-pci-0b00
    Adapter: PCI adapter
    vddgfx:       +0.76 V  
    fan1:         689 RPM
    temp1:        +32.0°C  (crit = +89.0°C, hyst = -273.1°C)
    power1:        4.00 W  (cap = 220.00 W)
    
    k10temp-pci-00c3
    Adapter: PCI adapter
    Tdie:         +42.0°C  (high = +70.0°C)
    Tctl:         +52.0°C
    Something is missing or isn't right... Maybe something in the bios?
    Last edited by lichtenstein; 29 November 2018, 04:14 PM.
  • lichtenstein
    Phoronix Member
    • Nov 2018
    • 81

    #2
    Interestingly enough, Wolfenstein 2 New Colossus (via wine) works (and looks) amazingly well at highest, "Sein Leben" setting (einfach geil ), no stuttering, butter smooth at 1440p. So, why is it that an older game like SS3 BFE stutters while W2 does not?

    Is there a way to disable (or trim) the frequency scaling via a kernel boot parameter?

    Also, regarding amd-wip kernel compilation, do you have a step by step guide? I watched your video that shows how to install your debian into virtualbox but I'm afraid I'm a bit rusty on the whole kernel compilation/installation business (xubuntu).

    Thanks for all your good advice!

    UPDATE: Dota 2 also runs buttery smooth. Sam3 and Shadow of the Tomb Raider still stutter...
    Last edited by lichtenstein; 30 November 2018, 06:37 AM. Reason: Added info on Dota 2

    Comment

    Working...
    X