woof icon indicating copy to clipboard operation
woof copied to clipboard

Lag spikes encountered on Linux build

Open DoomerDev2011 opened this issue 1 year ago • 2 comments

I am encountering lag spikes on the Linux version of Nugget Doom 4.2.0 and Woof 15.2. I have not encountered any spikes like this before in the past and wanted to bring this issue to light. These spikes are occur randomly and with seemingly no pattern but they happen frequently enough (at least 1 hard spike down every 2 minutes). I have attached a video of what the lag spikes look like.

https://github.com/user-attachments/assets/921c9505-a36a-49da-a9cc-906d000455ca

I am not aware of what is causing this issue. This issue seemingly came out of nowhere as this had only started last week. I have hundreds of hours with Nugget Doom and Woof with no issues prior. I do not run Nugget Doom and Woof with many mods as well (usually only a mappack when I play something custom).

DoomerDev2011 avatar Apr 01 '25 20:04 DoomerDev2011

Which distro? Which SDL version?

fabiangreffrath avatar Apr 01 '25 20:04 fabiangreffrath

Which distro? Which SDL version?

I'm running this on a stock steam deck so it runs Arch Linux as it's distro. For SDL version, it's version 2.30.0. Hope this helps!

DoomerDev2011 avatar Apr 01 '25 21:04 DoomerDev2011

I'll have a Steam Deck on hand later this week so I'll see if I can reproduce this. Does anyone recognize the wad in the video?

ceski-1 avatar Apr 29 '25 11:04 ceski-1

I'll have a Steam Deck on hand later this week so I'll see if I can reproduce this. Does anyone recognize the wad in the video?

Given the STBAR graphics, appears to be Earthless.

elf-alchemist avatar Apr 29 '25 12:04 elf-alchemist

The wad in question is Earthless, can confirm. 👍

On Tue, Apr 29, 2025 at 8:39 AM elf-alchemist @.***> wrote:

elf-alchemist left a comment (fabiangreffrath/woof#2233) https://github.com/fabiangreffrath/woof/issues/2233#issuecomment-2838664205

I'll have a Steam Deck on hand later this week so I'll see if I can reproduce this. Does anyone recognize the wad in the video?

Given the STBAR graphics, appears to be Earthless https://www.doomworld.com/forum/topic/152166-rc3-earthless/.

— Reply to this email directly, view it on GitHub https://github.com/fabiangreffrath/woof/issues/2233#issuecomment-2838664205, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTNG54O6CEXCFKLLF527S3235XEHAVCNFSM6AAAAAB2HZWJ7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZYGY3DIMRQGU . You are receiving this because you authored the thread.Message ID: @.***>

DoomerDev2011 avatar Apr 29 '25 13:04 DoomerDev2011

I played Earthless (RC3) for a few hours with a Steam Deck and everything was smooth. I downloaded the 15.2.0 release (Woof-15.2.0-Linux.appimage), added it to Steam in "Desktop Mode", then went back to "Gaming Mode" to actually play it.

After launching Woof, I enabled the Steam Deck performance overlay (Quick Access Menu > Performance Tab > Performance Overlay Level: 4) and watched it while playing, particularly the frametime graph. No matter what combination of settings I tried, it was always smooth. Nothing was remarkable about the CPU or GPU usage. Even in the worst case scenario (3W TDP, 200 MHz GPU clock, game recording enabled, Woof at max res w/o dynamic res), the game was still smooth but ran at a lower framerate, as expected.

Performance should be essentially the same across every Steam Deck unless something went wrong elsewhere (e.g. custom software is interfering, some system setting was changed by accident, etc.). So I have doubts that this is a Woof issue. Maybe there's an answer out there in one of the various Steam Deck or Arch Linux communities.

Here's what I tested:

Steam Deck software configuration:

  • Update Channel: Stable
  • OS Version: 3.6.24
  • OS Build: 20250313.1
  • Dock Firmware: 0.13.15.124

Steam Deck hardware configurations:

  • Docked (official dock)
  • Undocked
  • Steam Deck's built-in screen
  • Connected to an external monitor (2560x1440 @ 120 Hz)
  • Steam Deck's built-in controls
  • DualSense controller
  • Mouse and keyboard connected to the dock

Steam Deck game recording off and on.

Various combinations of Steam Deck's performance settings:

  • Frame Limit: 90 and 60
  • TDP Limit: Off, 15W, and 3W
  • Manual GPU Clock: Off, 1600 MHz, and 200 MHz
  • Scaling Mode: Auto and Integer
  • Scaling Filter: Linear and Pixel

Woof installed on the internal drive.

Various combinations of Woof's in-game settings:

  • Resolution Scale: 200%, 300%, and Max
  • Dynamic Resolution: On and Off
  • Fullscreen: On
  • Exclusive Fullscreen: Off and On
  • Uncapped FPS: On
  • Target FPS: 0 and 60
  • VSync: On
  • Smooth Pixel Scaling: On and Off

ceski-1 avatar May 01 '25 01:05 ceski-1

Some simple things to try based on a quick search:

  • Reboot the Steam Deck (seriously)
  • Check the temperature in the performance monitor (busted fan? overheating?)
  • Switch the OS update channel from stable to experimental, or vice versa

Good luck.

ceski-1 avatar May 01 '25 01:05 ceski-1

Here's what I tested:

Thank you very much!

fabiangreffrath avatar May 01 '25 08:05 fabiangreffrath

Glad it worked!

On Thu, May 1, 2025 at 4:06 AM Fabian Greffrath @.***> wrote:

fabiangreffrath left a comment (fabiangreffrath/woof#2233) https://github.com/fabiangreffrath/woof/issues/2233#issuecomment-2844346585

Here's what I tested:

Thank you very much!

— Reply to this email directly, view it on GitHub https://github.com/fabiangreffrath/woof/issues/2233#issuecomment-2844346585, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTNG5Z7LCMFGYFSAYW3DRD24HIYPAVCNFSM6AAAAAB2HZWJ7OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBUGM2DMNJYGU . You are receiving this because you authored the thread.Message ID: @.***>

DoomerDev2011 avatar May 01 '25 16:05 DoomerDev2011