Game Freezing - unsure how to troubleshoot - Star Craft 2

I have been playing Star craft 2 (SC2) and it was working well when I first loaded up Manjaro a year ago but now it has been having huge spikes where the Video just freezes. Game is still going on so 5 seconds will pass and the video will resume and I will be dead.

I am unsure how to troubleshoot this problem. How can I begin investigating this issue?

inxi -Fzcx0

System:
  Kernel: 5.4.67-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  Desktop: Xfce 4.14.2 Distro: Manjaro Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: X470 GAMING PLUS (MS-7B79) v: 2.0 
  serial: <filter> UEFI: American Megatrends v: A.B0 date: 07/04/2019 
CPU:
  Topology: 6-Core model: AMD Ryzen 5 1600X bits: 64 type: MT MCP arch: Zen 
  rev: 1 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 86412 
  Speed: 2096 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2904 2: 1988 
  3: 3564 4: 3008 5: 1865 6: 2728 7: 3347 8: 3288 9: 2943 10: 1911 11: 1854 
  12: 2685 
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: Gigabyte driver: amdgpu v: kernel bus ID: 27:00.0 
  Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati unloaded: modesetting 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Radeon RX 590 Series (POLARIS10 DRM 3.35.0 
  5.4.67-1-MANJARO LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.8 direct render: Yes 
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  vendor: Gigabyte driver: snd_hda_intel v: kernel bus ID: 27:00.1 
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 29:00.3 
  Device-3: Logic3 Afterglow Universal Wireless Gaming Headset type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus ID: 5-2:2 
  Sound Server: ALSA v: k5.4.67-1-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus ID: 22:00.0 
  IF: enp34s0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 330.41 GiB (35.5%) 
  ID-1: /dev/sda vendor: Seagate model: ST1000DM003-9YN162 size: 931.51 GiB 
Partition:
  ID-1: / size: 915.60 GiB used: 330.41 GiB (36.1%) fs: ext4 dev: /dev/dm-0 
Swap:
  ID-1: swap-1 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram0 
  ID-2: swap-2 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram1 
  ID-3: swap-3 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram2 
  ID-4: swap-4 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram3 
  ID-5: swap-5 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram4 
  ID-6: swap-6 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram5 
  ID-7: swap-7 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram6 
  ID-8: swap-8 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram7 
  ID-9: swap-9 type: zram size: 333.8 MiB used: 2.2 MiB (0.7%) 
  dev: /dev/zram8 
  ID-10: swap-10 type: zram size: 333.8 MiB used: 2.0 MiB (0.6%) 
  dev: /dev/zram9 
  ID-11: swap-11 type: zram size: 333.8 MiB used: 2.0 MiB (0.6%) 
  dev: /dev/zram10 
  ID-12: swap-12 type: zram size: 333.8 MiB used: 2.0 MiB (0.6%) 
  dev: /dev/zram11 
Sensors:
  System Temperatures: cpu: 35.9 C mobo: 27.0 C gpu: amdgpu temp: 32 C 
  Fan Speeds (RPM): fan-1: 0 fan-2: 677 fan-3: 0 fan-4: 0 fan-5: 0 
  fan-6: 1289 gpu: amdgpu fan: 783 
  Voltages: 12v: N/A 5v: N/A 3.3v: 3.41 vbat: 3.26 
Info:
  Processes: 330 Uptime: 2h 20m Memory: 15.65 GiB used: 5.86 GiB (37.4%) 
  Init: systemd Compilers: gcc: 10.2.0 Packages: 1407 Shell: Bash v: 5.0.18 
  inxi: 3.1.05 

Is there something akin to events in windows? seems like the closest thing in Journalctl and I couldnā€™t find anything of importance to the situation there.

The game is launched through Lutris+wine, I tried 2 different versions of the game and still run into the same problem.

Maybe give the game name?

I think its the game about gas crystals.
You know ā€¦ the one where stim-junkies and pros toss around bugs.

ā€¦ I heard its a rush.

1 Like

Super Copter 2?

Apologies, I am so used to using the acronym for it. I have made changes in original post, It is Star Craft 2.

Iā€™ll see if I can record what is happening. I canā€™t seem to find an FPS overlay that will work with what I have. Iā€™ve tried messing with the settings in Lutris to reduce any strain and turn off features that arenā€™t needed for the game. I donā€™t know if its a dropped connectionā€¦like maybe its causing the game to glitch, normally though a dropped connection pauses the gameā€¦I am just unsure of what I can do from this point to try and figure out why its doing this. Any help would be appreciative.

Set DXVK_HUD=full if you need an overlay.

If you wanted a wild guess, this sounds like the issue from 4-5 years ago experienced on older/failing HDDs.
To that the general ā€œsolutionā€ was trying another HDD or move the game to an SSD.

I could see thatā€¦but how can I verify? If I were a windows user I would pull up Performance monitor and see my HDD working overtime for little transfer. Is there a way for me to double check this on Manjaro?

Look for tools for HDD health status, like on Windows. GSmartControl for example. Check the SMART status, and perform tests on the HDD too, short, long, or the other one, if short doesnā€™t spit errors or if you want deeper info.

I will give this a try when I get home, but by the time a HDD needs a test like this its usually very sluggishā€¦

Benchmark read speeds with hdparm or fio, compare to expected from vendor or average of other benchmarks of same hardware.

I ran hdparm and compared to online specs. If I am understanding correctly it looks like it is inline. But this test doesnā€™t feel as thorough as say a SMART test. But i havenā€™t been able to get GSmartControl to work yet.

I also found a tool I want to try called MANGOHUD and see if it helps determine the issue.

sudo hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   19712 MB in  2.00 seconds = 9870.60 MB/sec
 Timing buffered disk reads: 454 MB in  3.01 seconds = 151.05 MB/sec

Below are the standard specs


    Spindle Speed
    7200 rpm
    Features
    Native Command Queuing (NCQ), Perpendicular Magnetic Recording (PMR), Seagate AcuTrac technology, Seagate OptiCache technology, Seagate SmartAlign technology
    Hard Drive Type
    internal hard drive
    Form Factor (Short)
    3.5"
    Form Factor (metric)
    8.9 cm x 1/4H
    Form Factor (Short) (metric)
    8.9 cm
    Storage Interface
    Serial ATA-600
    Interface
    Serial ATA-600
    Max Seek Time
    9.5 ms
    Data Transfer Rate
    600 MBps
    Internal Data Rate
    210 MBps
    Internal Data Rate (Write)
    156 MBps
    Buffer Size
    64 MB
    Bytes per Sector
    4096 Hz
    Non-Recoverable Errors
    1 per 10^14
    Load / Unload Cycles
    300,000

This is what I am getting when I attempt to run gsmartcontrol

error> [gtk] _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ā€˜gio-vfsā€™
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<error> [gtk] setenv()/putenv() are not thread-safe and should not be used after threads are created
<warn>  [hz] Warning: exit: Device open failed, or device did not return an IDENTIFY DEVICE structure.
<warn>  [app] SmartctlParser::parse_full(): No ATA sections could be parsed. Returning.
<warn>  [hz] FS warning: Error while opening file "/proc/scsi/sg/devices": No such file or directory.
<warn>  [app] {anonymous}::read_proc_scsi_sg_devices_file(): Sg devices file doesn't exist.

doesnā€™t seem to like my hard driveā€¦

Try gsmartcontrol_polkit or sudo gsmartcontrol.
Read speeds are good.

Start GSmartControl from the application launcher.

I get the same errors. is it possible the GTK+ library isnā€™t installed?

hold on, I think i got it working now.

Ok, ran both short and extended and received no errors.

The problem has seemed to have lessened - but I donā€™t think I did anything of great importanceā€¦I installed Vulkan-tools - attempted to run from Terminal but I think because its a wine game it didnā€™t work. I tried to run journalctl -f but reporting would stop after the launch of the game I think for the same reasonā€¦But as of last night it only happened once in a large series of games.