Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrible performance after launch #742

Closed
marsmoon opened this issue May 27, 2018 · 8 comments
Closed

Terrible performance after launch #742

marsmoon opened this issue May 27, 2018 · 8 comments

Comments

@marsmoon
Copy link

OS: Debian
OpenSpades: 0.1.2 and master

I get 5-10 fps shortly after launch (also in the menu) and after every map change on the server. It becomes playable a few minutes after loading and playing on a map and later improves even more. During that period of bad performance, the ping reported by the game is very high too, but maybe that's another bug. This happens on low, medium and high settings.

@feikname feikname added the enhancement request/proposal to add a new feature label May 27, 2018
@feikname
Copy link
Collaborator

feikname commented May 27, 2018

Just out of curiosity, do you have an older computer? I used to have similar problems with 2007-era ones.

Altough they wouldn't get better FPS after some time unfortunately.

@marsmoon
Copy link
Author

No, I can run the game on highest settings with 40-60 fps, but shortly after map load it's around 5 fps.

@feikname feikname added bug some feature is broken and removed enhancement request/proposal to add a new feature labels May 27, 2018
@yvt
Copy link
Owner

yvt commented May 28, 2018

@marsmoon Does that still happen with Global Illumination turned off?

I had experienced similar symptoms on my dusty old machine with the oldest generation of AMD APU (on which OS runs faster than AoS because CPU is potato), which I reported as #34.

If this issue is identical with #34, the result of /r_debugTiming 1 + /r_debugTimingGPUTime 0 should indicate that a large portion of CPU time is spent on Radiosity.

@yvt
Copy link
Owner

yvt commented May 28, 2018

@marsmoon Also, can you please post information about your GPU and installed driver?

@marsmoon
Copy link
Author

Disabling global illumination fixes it. I'm using Radeon R7 250x with a free driver that comes with Debian.

@yvt
Copy link
Owner

yvt commented May 29, 2018

a free driver that comes with Debian

That leaves ambiguity; AFAIK there are at least four drivers capable of driving R7 250X (GCN 1st gen. or SI; Southern Islands):

  1. Gallium3D-based “radeonsi”
  2. AMD “AMDGPU" (support for SI is experimental)
  3. AMD “AMDGPU PRO” (closed-source binary blob that plugs into AMDGPU)
  4. AMD Catalyst “fglrx” (closed-source)

If I remember correctly, “my dusty old machine” runs on the Gallium3D-based “radeon” driver. It’s based on Gallium3D, which means that, despite having a fundamentally different GPU architecture, it shares some parts of its code with the first driver that I mentioned in the above list.

Probably “radeonsi” is the default choice for driving SI cards in many Linux distributions and so is the case with your Debian machine. Based on this assumption and my observations, the best guess would be that the glTexSubImage3D calls in the global illumination implementation are hitting an unoptimized code path in the shared part of the Gallium3D drivers.

@marsmoon
Copy link
Author

It's simply called "radeon", so it might be the first one. It's free, but requires non free firmware. I've tried AMDGPU a year ago, but it didn't work with my card. fglrx was abandoned by AMD and is not supported anymore (doesn't work with recent xorg I think).

There are some information here: https://wiki.debian.org/AtiHowTo

@feikname feikname added troubleshooting and removed bug some feature is broken labels May 31, 2018
@feikname
Copy link
Collaborator

Disabling global illumination fixes it. I'm using Radeon R7 250x with a free driver that comes with Debian.

As this problem is out of OpenSpades scope to fix and the workaround has been found, I will now close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants