Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bad performance in games.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Eichhorn
n00b
n00b


Joined: 08 Jun 2011
Posts: 13

PostPosted: Sat Apr 18, 2015 6:46 am    Post subject: Bad performance in games. Reply with quote

Good day.

I have HD7970GHz, intel i7-3930k and am using radeonsi drivers.
Mesa version is 10.5.2, kernel version is 4.0 with "ondemand" governor, though BFS and performance were also tested.
Flags for mesa are as follows:
Code:
USE="d3d9 dri3 egl gallium gbm llvm nptl openmax udev vdpau -bindist -classic -debug -gles1 -gles2 -opencl -osmesa -pax_kernel -pic (-selinux) -vaapi -wayland -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -vmware" 0 KiBUSE="d3d9 dri3 egl gallium gbm llvm nptl openmax udev vdpau -bindist -classic -debug -gles1 -gles2 -opencl -osmesa -pax_kernel -pic (-selinux) -vaapi -wayland -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -vmware"

My kernel .conf file: https://bpaste.net/show/ded73338524d
Card's power dpm state is set to "performance"

The problem is that I have a very low fps in games such as CS:GO and Torchlight2 regardless of settings.
In Counter Strike it may be explained by suboptimal CPU utilization, since toggling "multicore rendering" off results in 12-15 fps instead of 35-40.
Strange part is that no matter how much I downgrade the graphics, there is no change in frames per second. For example Torchlight2 in 2560x1440 fullscreen and everything turned on gives the same 20 fps as windowed 1280x720 with everything turned off.

Here is the picture with comparative stats for Euro Truck Simulator 2, Counter Strike: Global Offencive and Torchlight 2: http://tinypic.com/r/21vnky/8
As can be seen, difference is almost nonexistent, even though in "open" areas with small quantities of items performance rises.
If you may need a log for steam and Torchlight2, here it is: https://bpaste.net/show/6fe066affbe6

Where have I made a mistake?

EDIT: updated mesa and video drivers to the git version and nothing really changed, so most probably it's not a video driver problem.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33222
Location: 56N 3W

PostPosted: Sat Apr 18, 2015 2:33 pm    Post subject: Reply with quote

Eichhorn,

Please post your dmesg and /var/log/Xorg.0.log
Is your normal user in the video group?

Code:
CONFIG_FB_RADEON=y
looks a bit odd as
Code:
CONFIG_DRM_RADEON=y
provides a framebuffer console for free.
It will be interesting to examine the pastebins I've asked for.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Eichhorn
n00b
n00b


Joined: 08 Jun 2011
Posts: 13

PostPosted: Sat Apr 18, 2015 3:18 pm    Post subject: Reply with quote

NeddySeagoon,

Xorg.0.log: https://bpaste.net/show/6e4791ca0667
dmesg: https://bpaste.net/show/4a7a8684d61d
My user's groups: uid=1000(eichhorn) gid=1000(eichhorn) groups=1000(eichhorn),6(disk),10(wheel),18(audio),27(video),85(usb),100(users),104(plugdev)

Currently
Code:
# CONFIG_FB_RADEON is not set

I've set it by mistake initially.
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4691

PostPosted: Sat Apr 18, 2015 6:25 pm    Post subject: Reply with quote

Are you sure selinux isn't playing game with your games (i know weak word play, but i like it)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33222
Location: 56N 3W

PostPosted: Sat Apr 18, 2015 6:37 pm    Post subject: Reply with quote

Eichhorn,

That all looks good.

As your normal user, what does
Code:
$ glxinfo | grep direct
tell?

Users should never be in the disk group. It allows raw access to block devices and lets them steal /ect/shadow so that they can crack passwords and gives access to any file on the filesystem (and all the unused space).
Even SELinux won't help you there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Eichhorn
n00b
n00b


Joined: 08 Jun 2011
Posts: 13

PostPosted: Sat Apr 18, 2015 9:47 pm    Post subject: Reply with quote

krinn,

It may be. Have any suggestions? I'll gladly try pretty much anything.

NeddySeagoon,

I wasn't aware of that, thank you.

Code:
~ $ glxinfo | grep direct
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
direct rendering: Yes
    GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect,
    GL_ARB_map_buffer_range, GL_ARB_multi_bind, GL_ARB_multi_draw_indirect,
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 4691

PostPosted: Sun Apr 19, 2015 12:28 am    Post subject: Reply with quote

Eichhorn wrote:
krinn,

It may be. Have any suggestions? I'll gladly try pretty much anything.

Nothing hard: https://wiki.gentoo.org/wiki/SELinux/FAQ#How_do_I_disable_SELinux_completely.3F
As it would answer if selinux is doing that or not.

If you find out it's selinux, howto fix that while keeping selinux enable is a different story (that will need a different user than me to answer it).
Back to top
View user's profile Send private message
Eichhorn
n00b
n00b


Joined: 08 Jun 2011
Posts: 13

PostPosted: Sun Apr 19, 2015 7:11 am    Post subject: Reply with quote

krinn,

It turns out I don't have selinux built in, however after reading about it I think I want to, but that's a different story.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33222
Location: 56N 3W

PostPosted: Sun Apr 19, 2015 8:53 am    Post subject: Reply with quote

Eichhorn,

Code:
direct rendering: Yes
Says its OK.

What FPS do you get?
In general 60 FPS is OK, as drawing is being synched to page flipping.
Any faster is wasted, since you can never see the other drawn frames.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Eichhorn
n00b
n00b


Joined: 08 Jun 2011
Posts: 13

PostPosted: Sun Apr 19, 2015 9:36 am    Post subject: Reply with quote

NeddySeagoon,

You can see for yourself here: http://tinypic.com/r/21vnky/8.
I ran each game a couple of times with high and low settings and gallium hud enabled.

Long story short, CS:GO is ok with average of 36 fps, but with stuttering and freezes on high settings, but Torchlight is never over 20 during normal gameplay and EuroTruck is up to 30 when the view is clear and down to 8 when there are 6+ cars visible.
During loading screens Counter strike suddenly boosts up to 450, Eurotruck to 60 and Torchlight never really gives more than 20.

I thought there might be a problem somewhere in my configuration, since during my earlier gaming experience changes in resolution used to have drastic effect on performance yet here the effect is negligible at best.

Having sustainable 30+ fps would have been adequate for me and I definitely wouldn't call 60 fps a bad performance.

May there be a problem with my steam installation? I switched to overlay a while ago and ran this command:
Code:
find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete

to remove some old libraries shipped with the client.

Runtime is not native, since I miss following libraries:
Quote:

libgconf-2.so.4 => not found
libgcrypt.so.11 => not found
libnm-glib.so.4 => not found
libnm-util.so.2 => not found
libopenal.so.1 => not found
libpulse.so.0 => not found
libudev.so.0 => not found

If this command is to be believed:
Code:
LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}" ldd $(file *|sed '/ELF/!d;s/:.*//g')|grep 'not found'|sort|uniq


Which is rather strange since at least I definitely have udev which is compiled with ABI_X86="32 64"

EDIT: I should try installing set of dependencies from, the wiki, maybe that should fix the issue.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33222
Location: 56N 3W

PostPosted: Sun Apr 19, 2015 9:56 am    Post subject: Reply with quote

Eichhorn,

Thats really ugly. I'm not a gamer. All I can say is that everything looks OK except the results.

For me, the next step would be to run the same tests with the fglrx binary blob driver.
That won't help fix anything but it will tell you how far away from the benchmark you are.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Eichhorn
n00b
n00b


Joined: 08 Jun 2011
Posts: 13

PostPosted: Sun Apr 19, 2015 11:40 am    Post subject: Reply with quote

Thank you all, I've found a problem.

I suspected that CPU was the bottleneck and it turned out to be so.

However the problem was not in my gentoo configuration, but in BIOS.

Turns out my EVGA X79-Dark's "ELEET Ratio Control" suddenly decided that my CPU should be severely slower than it is. As a result compilation became at least 4 times slower and games refused to run properly.

I turned it off and now have rock solid 59fps with vertical sync in CS, 50-60 in torchlight and so on.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum