Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

30 FPS for glxgears with decent GPU

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
avitase
n00b
n00b
Posts: 41
Joined: Sun Apr 26, 2015 5:31 pm

30 FPS for glxgears with decent GPU

  • Quote

Post by avitase » Sun Apr 12, 2020 5:37 pm

Hi,

I have an AMD 5700XT installed and get surprisingly low frame rates ~30 FPS with glxgears. I know that this is not the right tool for benchmarking, anyhow, 30 FPS is well below the monitor refresh rate (I guess?).

Code: Select all

#  glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
601 frames in 5.0 seconds = 119.773 FPS
151 frames in 5.0 seconds = 30.004 FPS
152 frames in 5.0 seconds = 30.209 FPS
151 frames in 5.0 seconds = 30.005 FPS
151 frames in 5.0 seconds = 30.010 FPS
151 frames in 5.0 seconds = 30.008 FPS
151 frames in 5.0 seconds = 30.005 FPS
151 frames in 5.0 seconds = 30.012 FPS
151 frames in 5.0 seconds = 30.007 FPS
151 frames in 5.0 seconds = 30.008 FPS
151 frames in 5.0 seconds = 30.008 FPS
151 frames in 5.0 seconds = 30.007 FPS
151 frames in 5.0 seconds = 30.005 FPS
151 frames in 5.0 seconds = 30.011 FPS
151 frames in 5.0 seconds = 30.004 FPS
151 frames in 5.0 seconds = 30.011 FPS
151 frames in 5.0 seconds = 30.008 FPS
This short spike for the first 5s happens reproducible, but I don't know, whether this is an artefact of glxgears.
I followed the AMDGPU Gentoo Wiki as close as possible and since I have no APU unit in my CPU and due to the fact, that the monitor is plugged into my graphic card directly (not the mainboard) I am pretty sure that I am indeed benchmarking the right device.
I am running the 5.4.28 kernel, mesa 19.3.5 and loaded the AMD device driver as a module:

Code: Select all

#  lsmod
Module                  Size  Used by
br_netfilter           28672  0
amdgpu               3887104  6
mfd_core               16384  1 amdgpu
gpu_sched              32768  1 amdgpu
ttm                    90112  1 amdgpu
efivarfs               16384  1

Code: Select all

# cat /etc/portage/make.conf | grep -i video_cards
VIDEO_CARDS="amdgpu radeonsi"
I am using the i3wm, in case this is important...

Any ideas / comments?
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4692
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Sun Apr 12, 2020 5:42 pm

Check if your monitor isn't really running on 30Hz mode:

Code: Select all

xrandr
.

EDIT: Also check if your GPU isn't limited by some other way:

Code: Select all

vblank_mode=0 glxgears
... and you should see fps numbers in thousands in smaller window.
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
avitase
n00b
n00b
Posts: 41
Joined: Sun Apr 26, 2015 5:31 pm

  • Quote

Post by avitase » Sun Apr 12, 2020 6:01 pm

thanks for your help. You are right! Sorry for that.

This is strange, I know that my monitor can run 3440x1440 @ 60Hz... Any idea why this is not listed below? The monitor is connected via DP -> HDMI cable, but I don't see why this should be an issue?

Code: Select all

# xrandr
Screen 0: minimum 320 x 200, current 3440 x 1440, maximum 16384 x 16384
DisplayPort-0 disconnected primary (normal left inverted right x axis y axis)
DisplayPort-1 connected 3440x1440+0+0 (normal left inverted right x axis y axis) 798mm x 335mm
   3440x1440     29.99*
   1720x1440     60.00
   1920x1080     60.00    60.00    50.00    59.94
   1600x1200     60.00
   1280x1024     75.02    60.02
   1280x800      59.91
   1152x864      75.00
   1280x720      60.00    50.00    59.94
   1024x768      75.03    60.00
   800x600       75.00    60.32
   720x576       50.00
   720x480       60.00    59.94
   640x480       75.00    60.00    59.94
   720x400       70.08
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)

Code: Select all

vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
91116 frames in 5.0 seconds = 18223.127 FPS
91199 frames in 5.0 seconds = 18239.607 FPS
91503 frames in 5.0 seconds = 18300.578 FPS
Edit: I just checked the refresh rate of my monitor with windows: 30Hz. I have other problems - sorry for the noise and thanks for your help!
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2402
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Sun Apr 12, 2020 7:05 pm

Have you got your monitor configured for interlaced instead of progressive? That halve the frame rate - or more exactly the screen only writes half a frame at each update.
Greybeard
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Sun Apr 12, 2020 7:14 pm

You need a cable rated for HDMI 2.0 or higher.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Apr 12, 2020 7:17 pm

avitase,

3440 x 1440 at 60Hz is more that HDMI 1 can support.
You need HDMI 2 compatible equipment both ends. An HDMI 1 cable might work. The connectors are identical but the timing tolerances on the signals are tighter for HDMI 2.

With HDMI 1, its working as expected.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
avitase
n00b
n00b
Posts: 41
Joined: Sun Apr 26, 2015 5:31 pm

  • Quote

Post by avitase » Sun Apr 12, 2020 7:36 pm

thanks for the help. I wasn't aware of that. Changing cables actually helped! Sorry for the noise
Top
Zucca
Administrator
Administrator
User avatar
Posts: 4692
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Sun Apr 12, 2020 7:54 pm

avitase wrote:Sorry for the noise
Don't be sorry. This is (primarily) why these forums have been set up - to help others with problems related to Gentoo and other things close to it. :)
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Apr 12, 2020 7:59 pm

avitase,

We would all hate for you not having the best possible Gentoo experience that your equipment can provide.
A 30Hz refresh rate is horrible. Its better on an LCD than a CRT though.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic