Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wrong driver for intel graphics card? Bad performance
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Wed Aug 10, 2022 3:48 pm    Post subject: Wrong driver for intel graphics card? Bad performance Reply with quote

Hello!

Trying to pin down an issue with my internal graphic chip on my i5-4590. It is Haswell processor containing HD Graphics 4600 (Gen7.5) from what I gather.

Im getting bad performance in the only game i play (openrct2) and when i check the utilization while running the game with "intel_gpu_top" its in the low 5%.

I do have VIDEO_CARDS="intel" set.

And checking through xorg log, it only mention i915 (which seems to be a bit old or is it all called this now?)

Further down i saw this line
Quote:
(EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr/lib64/dri/i965_dri.so: cannot open shared object file: No such file or directory)

I found a post regarding this error, and the fix was to "rebuild" mesa with intel set to videocards, but i had it set all along, but for sanity i tried to re-emerge it. Same deal.

Ill post dmesg, xorglog and .config below:

dmesg: https://pastebin.com/CWkkDaP8

kernel: https://pastebin.com/E2CBcxXR

xorg log: https://pastebin.com/nPifKDn6

Hopefully with greater GPU knowledge than me maybe have seen this?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Wed Aug 10, 2022 4:11 pm    Post subject: Reply with quote

Uninstall x11-drivers/xf86-video-intel and it should work
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Wed Aug 10, 2022 4:19 pm    Post subject: Reply with quote

That would have been beautiful, but unfortunately nothing did change after deselecting and depclean..
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Wed Aug 10, 2022 4:21 pm    Post subject: Reply with quote

The Xorg log should change significantly and choose the crocus DRI driver instead of the deprecated and removed i965 DRI driver
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Wed Aug 10, 2022 4:25 pm    Post subject: Reply with quote

Actually it still is trying to load the i965 driver. so nothing major changed in that regard..

Should i still call the "intel" driver in xorg settings?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Wed Aug 10, 2022 4:30 pm    Post subject: Reply with quote

ALF__ wrote:
Actually it still is trying to load the i965 driver. so nothing major changed in that regard..

Should i still call the "intel" driver in xorg settings?


The modesetting driver is preferred to intel in many cases. It may be necessary to force crocus like this:

Code:

Section "Device"
        Identifier  "Intel Graphics"
        Driver      "modesetting"
        Option      "AccelMethod"    "glamor"
        Option      "DRI"            "crocus"
EndSection
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Wed Aug 10, 2022 4:34 pm    Post subject: Reply with quote

That sure made it load,

but performance is even worse. dropped 5-10 fps more 8O

https://pastebin.com/SzMaps9L
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Fri Aug 12, 2022 9:23 am    Post subject: Reply with quote

Something fundamental needs to be off here.

Just checked old trustworthy glxgears, and it is returning 56 fps..
If i remember correctly from way back when we would get fps in the several hundreds if im not mistaken.

This is my glxinfo output in regards to "direct"

Quote:
~ $ glxinfo | grep direct
direct rendering: Yes
GL_AMD_draw_buffers_blend, GL_AMD_multi_draw_indirect,
GL_ARB_derivative_control, GL_ARB_direct_state_access,
GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect,
GL_ARB_half_float_vertex, GL_ARB_indirect_parameters,
GL_ARB_multi_draw_indirect, GL_ARB_occlusion_query2,
GL_AMD_draw_buffers_blend, GL_AMD_multi_draw_indirect,
GL_ARB_direct_state_access, GL_ARB_draw_buffers,
GL_ARB_draw_indirect, GL_ARB_draw_instanced, GL_ARB_enhanced_layouts,
GL_ARB_half_float_vertex, GL_ARB_indirect_parameters,
GL_ARB_multi_draw_indirect, GL_ARB_multisample, GL_ARB_multitexture,
GL_EXT_demote_to_helper_invocation, GL_EXT_direct_state_access,


Any help would be greatly appreciated!
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Fri Aug 12, 2022 12:14 pm    Post subject: Reply with quote

Well, scratch that.

glxgears is probably locked to the screen refreshrate that seem to be 60hz..

To be sure i downloaded "Xonotic"-game. It runs locked at 60fps in "glx" mode, and between 60-100 in "sdl" whatever the difference is there, I dont know.
Shows I'm not a big gamer.

So then it might point to an issue with openRCT2 in it self then i guess.

If you have any other thoughts, like how to confirm everything is really "switched on and active".

Otherwise I guess we can close this?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Aug 12, 2022 1:56 pm    Post subject: Reply with quote

Try
Code:
vblank_mode=0 glxgears

or, even better:
Code:
vblank_mode=0 glxgears -fullscreen
Back to top
View user's profile Send private message
ALF__
Apprentice
Apprentice


Joined: 30 Nov 2003
Posts: 246

PostPosted: Fri Aug 12, 2022 3:46 pm    Post subject: Reply with quote

Well,

Windowed around 2.7k fps and fullscreen over both screens 270fps 8O
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2006

PostPosted: Fri Aug 12, 2022 6:48 pm    Post subject: Reply with quote

mike155 wrote:
Try
Code:
vblank_mode=0 glxgears

or, even better:
Code:
vblank_mode=0 glxgears -fullscreen

Didn't know about those options, so I tried them on my laptop; interestingly, Wayland fullscreen runs about twice the fps of X11, but windowed is about the same. Of course, I know glxgears only tests how fast glxgears goes and is not a real performance test, but interesting nevertheless.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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