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

Slow performance on the FLOSS radeon driver #6227

Closed
DorpsGek opened this issue Feb 5, 2015 · 7 comments
Closed

Slow performance on the FLOSS radeon driver #6227

DorpsGek opened this issue Feb 5, 2015 · 7 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Feb 5, 2015

Cyber_Killer opened the ticket and wrote:

The game runs very slowly (less than 10 fps, affects also mouse movement) even in the main menu.

I use OpenSUSE 13.2, kernel 3.16.7, radeon driver, I run KDE (disabling desktop effects doesn't help). I use the OpenTTD package from the distros repository, but the same happens with the binary downloaded from the project website.

There were no such problems with OpenTTD, when I used the fglrx driver. Other games don't have so severe performance issues (Battle for Wenoth runs normally though somewhat slower but it's playable, on the other hand I get over 50 fps in Xonotic on ultra settings).

Reported version: 1.4.4
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/6227
@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 5, 2015

frosch wrote:

Please try 1.5.0-beta1. It changes some default video configurations that should work better with modern hardware/drivers.

Otherwise, please attach your openttd.cfg.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227#comment13761

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 5, 2015

Cyber_Killer wrote:

The 1.5.0beta seems to be a little bit slightly faster (at least I can move the mouse cursor around semi-controllably), but still unplayable.

I attached my config file as requested.

btw: my hardware is Athlon64X2 4200+, 4GB DDR2, Radeon HD7770

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227#comment13762

@DorpsGek
Copy link
Member Author

krinn wrote:

Remind me : http://bugs.openttd.org/task/5802

As your config doesn't have any blitter set, i think you are running at 128 cache size, while frosch commit 128 as default cache size, that default size is only for 8bpp
http://hg.openttd.org/openttd/trunk.hg/rev/96a1128e944c
With a 32bpp the cache size is * 4

So for me, you are running 8bpp blitter, cache size is set to 128, cache size is too small -> cpu get on its knees -> slowness.

What you could try :
- Force 32bpp blitter -> blitter = "32bpp-optimized"
- Force higher cache size -> sprite_cache_size_px = 512
- Or combine both


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227#comment13771

@DorpsGek
Copy link
Member Author

krinn wrote:

lol sorry couldn't edit, remind me bug http://bugs.openttd.org/task/5162 (not the 5802)


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227#comment13772

@DorpsGek
Copy link
Member Author

Cyber_Killer wrote:

I added both. This made the game extra smooth on another of my machines (which didn't have performance problems anyway), but didn't help on my main. In another place some people suggested that I might not have 2d acceleration working. I accept the possibility that this might be a bug in the driver, not in OpenTTD.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227#comment13773

@DorpsGek
Copy link
Member Author

Cyber_Killer wrote:

Because I couldn't find how to resolve this, I ended up installing fglrx again.

I don't know what causes this problem, the gameitself, libsdl (cause I noticed severe slowdowns in other libsdl games too), or the radeon driver (fun fact: my hdd died in the mean time, before that it broke my xorg setup and I had to use some generic video driver, probably vesa - OpenTTD ran great on that, but all 3d apps didn't run at all). I'll keep in mind to check if this gets fixed in newer kernels and distro versions.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227#comment13782

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Unreproducible


This comment was imported from FlySpray: https://bugs.openttd.org/task/6227

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant