You are not logged in.

#1 2014-09-02 18:33:57

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

[Dota2] worse perfomance than with Windows

Hello,

with Arch Linux i got around 20 fps less than with Windows 7 in Dota 2 with the same Hardware (Thinkpad x230, i7 3520m, intel hd4000) and the same detail level. xf86-video-intel driver is installed, vsync deactivated and intel_pstate as energy-driver.

Do you have any idea, what could be the cause?

Thank you.

Last edited by Asbestbrezel (2014-09-02 18:36:50)

Offline

#2 2014-09-03 05:28:22

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [Dota2] worse perfomance than with Windows

Assuming you only have one graphics card (if you have two, Windows will use the second when playing Dota 2 but you'll have to configure Linux to get it to do that.)...
1. Intel cares more about Windows' graphics performance than Linux's.
2. More likely, Valve has spent (much) more time optimizing for performance on Windows.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2014-09-03 08:57:51

joanmanel
Member
Registered: 2012-11-06
Posts: 234

Re: [Dota2] worse perfomance than with Windows

Stebalien wrote:

Assuming you only have one graphics card (if you have two, Windows will use the second when playing Dota 2 but you'll have to configure Linux to get it to do that.)...
1. Intel cares more about Windows' graphics performance than Linux's.
2. More likely, Valve has spent (much) more time optimizing for performance on Windows.

The opposite about Valve. There were actually a few blog entries explaining how L4D got more frames in Linux than Windows.

I also play Dota2, I have an HD 7770, I use the open source drivers (which are much worse than its windows counterparts) and I am getting the same performance in linux or w8, this is because Valve uses almost just opengl.

As far as I know, intel drivers are good. I would recommend disabling options and see how it goes. Its very probable that some of the options are not integrated in the driver, and thats why it goes slow.

Offline

#4 2014-09-03 14:07:36

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [Dota2] worse perfomance than with Windows

There are some videos on youtube, that compare performance of valve games under linux and windows and there are not so big differences, so i wonder why why i have them.
I deactivated all options, except of texture quality.

Offline

#5 2014-09-04 10:48:38

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [Dota2] worse perfomance than with Windows

Asbestbrezel, did you look at https://wiki.archlinux.org/index.php/St … ing#Dota_2 ?

The steam output when you start Dota2 from terminal might also be helpful.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2014-09-06 14:40:16

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [Dota2] worse perfomance than with Windows

output of terminal:

SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system DOES NOT support the OpenGL extension GL_EXT_direct_state_access.
This system DOES NOT support the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system DOES NOT support the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system supports the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system DOES NOT support the OpenGL extension GLX_EXT_swap_control_tear.
GL_NV_bindless_texture: DISABLED
GL_AMD_pinned_memory: DISABLED
GL_EXT_texture_sRGB_decode: AVAILABLE
GL_NVX_gpu_memory_info: UNAVAILABLE
GL_ATI_meminfo: UNAVAILABLE
GL_MAX_SAMPLES_EXT: 8
Adding VPK file: /home/zausel/.local/share/Steam/SteamApps/common/dota 2 beta/dota/sound_vo_english
Adding VPK file: /home/zausel/.local/share/Steam/SteamApps/common/dota 2 beta/dota/pak01
Adding VPK file: /home/zausel/.local/share/Steam/SteamApps/common/dota 2 beta/platform/pak01
Found joystick 'A4TECH USB Device' (03000000da0900006690000011010000), but no recognized controller configuration for it.
WARNING: unable to link Test_StartScript and Test_StartScript because one or more is a ConCommand.
WARNING: unable to link Test_RandomChance and Test_RandomChance because one or more is a ConCommand.
WARNING: unable to link Test_LoopForNumSeconds and Test_LoopForNumSeconds because one or more is a ConCommand.
WARNING: unable to link Test_Loop and Test_Loop because one or more is a ConCommand.
WARNING: unable to link Test_LoopCount and Test_LoopCount because one or more is a ConCommand.
WARNING: unable to link Test_StartLoop and Test_StartLoop because one or more is a ConCommand.
WARNING: unable to link log_flags and log_flags because one or more is a ConCommand.
WARNING: unable to link log_color and log_color because one or more is a ConCommand.
WARNING: unable to link log_verbosity and log_verbosity because one or more is a ConCommand.
WARNING: unable to link log_level and log_level because one or more is a ConCommand.
WARNING: unable to link log_dumpchannels and log_dumpchannels because one or more is a ConCommand.
Load a scaleform font provider?
Creating D3D9 device with D3DCREATE_MULTITHREADED
IDirect3DDevice9::Create: BackBufWidth: 1920, BackBufHeight: 1080, D3DFMT: 3, BackBufCount: 1, MultisampleType: 0, MultisampleQuality: 0
GL sampler object usage: DISABLED

 ##### swap interval = 0     swap limit = 1 #####
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
!! Controller config file passed by steamworks game 570 did not exist at /home/zausel/.local/share/Steam/SteamApps/common/dota 2 beta/dota/cfg/controller.vdf
Installing breakpad exception handler for appid(steam)/version(1409240101)
[0906/163237:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[0906/163237:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[0906/163237:ERROR:renderer_main.cc(227)] Running without renderer sandbox
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
libpng warning: Interlace handling should be turned on when using png_read_image
ERROR: ld.so: object '/home/zausel/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/zausel/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/zausel/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/zausel/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Installing breakpad exception handler for appid(steam)/version(1409240101)
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
Precache: Took 15508 ms, Vertex 429, Pixel 4387
ConVarRef dota_fow_disable doesn't point to an existing ConVar
CClientSteamContext logged on = 1
Could not get IReplayDirector interface from library serverGame.dll loaded for "Dota 2"

And something, that you see a lot is this error in the ingame-console:

 IDirect3DQuery9::GetData(): Occlusion query flush took [i]xxxx[/i]ms

Offline

#7 2014-09-06 15:42:59

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [Dota2] worse perfomance than with Windows

ERROR: ld.so: object '/home/zausel/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

the wrong ELF class message indicates you may be missing a lib32-* package.
Is lib32-intel-dri installed ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2014-09-06 16:56:51

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [Dota2] worse perfomance than with Windows

yep, is installed. i'm sorry, that i cant provide more usefull information, but i just don't know, where to search the problem.

But i guess, this Occlusion Query Flush has something to do with it. Other Linux players with this Error seem to have performance problems, too.

Offline

#9 2014-09-07 15:34:09

voidrunner
Member
Registered: 2014-09-07
Posts: 2

Re: [Dota2] worse perfomance than with Windows

Hi Astbrezel!

Getting dota2 to run and after this getting good performance was a challenge for me.
Spread across the Internet there are some Blogs and Board Entries dealing with the topic game performance on Arch but I really can't say anymore which ones helped me the most - they are just too hard to find again. But what I learned: In contrast to ie Ubuntu you have to care for your System giving most of the Resources to the Game. I do this with the "ionice" command. You can find it in AUR as part of "util-linux" (there are several version of it). I thin that "verynice" is also a possibility but I don't use it.
So, what I did then was to edit launch options for Dota2. In your library you right click on "Dota 2" then "Properties" and then "set launch options".
I will just post my launch options, you will have to try yourself if your performance gets better with

LD PRELOAD="libpthread.so.0 libGL.so.1"   GL THREADED OPTIMIZATIONS=1 ionice -c 2 -n 0 optirun %command%

The "LD PRELOAD"-part may not be necessary for you. With my setup, I had to downlad some libraries separately or the game wouldn't start. The part beginning with "GL...." until "...-n 0" might help you.

OK, you can see that I also don't know much about the topic but at least I can tell you what works for me ^^ Let me know if it's working with your setup!

Btw, I am playing on a ThinkPad T530.

Last edited by voidrunner (2014-09-07 15:41:11)

Offline

#10 2014-09-07 18:48:12

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: [Dota2] worse perfomance than with Windows

for more performance use primus instead of virtualgl eg.  optirun


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#11 2014-09-08 16:31:11

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [Dota2] worse perfomance than with Windows

@voidrunner: I will try to optimize my processes, thanks for the advice.

Thaodan wrote:

for more performance use primus instead of virtualgl eg.  optirun

I thought this technology is for multi-gpu systems only. Can i use it with my single intel hd4000?

Last edited by Asbestbrezel (2014-09-08 16:31:39)

Offline

#12 2014-09-09 02:38:31

vorenon
Member
Registered: 2013-02-04
Posts: 8

Re: [Dota2] worse perfomance than with Windows

Does switching to the "performance" CPU scheduler speed things up?

cpupower frequency-set -g performance

Offline

#13 2014-09-11 15:55:02

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [Dota2] worse perfomance than with Windows

No. Its running on max. Frequency, both CPU and GPU.

Offline

#14 2014-09-13 13:11:36

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: [Dota2] worse perfomance than with Windows

Asbestbrezel wrote:

@voidrunner: I will try to optimize my processes, thanks for the advice.

Thaodan wrote:

for more performance use primus instead of virtualgl eg.  optirun

I thought this technology is for multi-gpu systems only. Can i use it with my single intel hd4000?

It is, this was an anser to the post above me.


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#15 2014-09-14 09:40:09

Asbestbrezel
Member
Registered: 2014-07-27
Posts: 67

Re: [Dota2] worse perfomance than with Windows

I think the reason for the bad perfomance is the Direct3D-Translation-Layer "ToGL" Valve has built in. I Just has to live with that and hope Valve will fix that in future.

Offline

Board footer

Powered by FluxBB