this post was submitted on 10 Dec 2023
46 points (100.0% liked)

Linux Gaming

15797 readers
22 users here now

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

founded 4 years ago
MODERATORS
 

TL;DR: PROTON_LOG=1 drastically improves performance in Warframe.

I've been dealing with persistent stuttering and general slowdown in Warframe, particularly when assets were loading in upon startup and especially during loading screens. Generally, once I would get into actual gameplay things would be smooth (according to both myself and Mangohud,) but going from a hub to an open world area would completely tank performance or even outright halt rendering for 30 to 40 seconds in the worst-case scenario.

I decided to start poking into what was happening and immediately found out that PROTON_LOG=1 completely solves all of these problems. The longest loading time (30 seconds or so) is now 5 seconds. Missions load almost instantaneously.

The generated log is extremely verbose at around 1MB a minute. I don't see anything obviously wrong, but then again the game is working as it should.

Why is this? Wouldn't not generating the log be faster?

top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 33 points 11 months ago (1 children)

A software developer's worst nightmare. "When I turn logging on the problem goes away."

[–] [email protected] 7 points 11 months ago

Right? I laughed when I found out it worked, then had a moment of like, "hh, shit" when I realized the log wouldn't actually help me solve the problem at all.

[–] [email protected] 16 points 11 months ago* (last edited 11 months ago) (1 children)

It could be that running the game at full speed causes some lock contention that doesn't happen when slowed down by the log stream.
Or it could also be that under normal gameplay your system spins down the harddrive to save power due to a lack of accesses, which would cause slowdowns and choppiness when the game suddenly needs to load something - also something which would be helped by running the log in the background.

For testing the second point, I'd suggest running something like this in the background while playing; (i.e. generating some constant load)

while true; do
  uptime > $HOME/workaround-test
  sleep 1
done
[–] [email protected] 4 points 11 months ago (1 children)

Good ideas. I'm curious about the game running too fast since other people mentioned it. Warframe has an in-engine FPS cap that can be set (which I have set to my display's frame rate,) but perhaps I should try vsync or some other method in case it's something screwy on that end.

Disk is fine (it's an SSD so any start/stops would be instantaneous AFAIK.)

[–] [email protected] 3 points 11 months ago* (last edited 11 months ago)

If you feel like testing an external FPS limiter, Mangohud has one built-in

[–] [email protected] 5 points 11 months ago

Try limiting the frame rate.

[–] [email protected] 3 points 10 months ago

Have you tried installing Linux?

[–] [email protected] 3 points 11 months ago

I toggle off my compositor and it makes Warframe much smoother (kde has a default keybinding for it I think)

[–] [email protected] 2 points 11 months ago

sounds to me like a timing issue. By using the proton log you might slow down to the point the timing issue doesn't give you problems anymore. Try disabling vsync and enabling a fps limit (warframe has both settings itself).

Another possible cause could be filesystem going to a powersaving mode during normal gameplay and by writing logs you keep the disk in high performance.