LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-23-2013, 06:26 PM   #1
GazL
Senior Member
 
Registered: May 2008
Posts: 3,476

Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
14.1 RC2 nouveau, glxgears sync v-blank


Code:
test@rc2:~$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
VGA-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.1     60.0  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
test@rc2:~$ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
7616 frames in 5.0 seconds = 1523.152 FPS
7619 frames in 5.0 seconds = 1523.626 FPS
7903 frames in 5.0 seconds = 1580.545 FPS
Not the most earth shattering of issues, but is this usual when using nouveau/mesa rendering? That'd be one hell of a vertical refresh rate!
 
Old 10-24-2013, 03:45 PM   #2
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware64
Posts: 145

Rep: Reputation: 47
FYI under nVidia R319.60 glxgears gives me:
bash-4.2$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
300 frames in 5.0 seconds = 59.954 FPS
298 frames in 5.0 seconds = 59.443 FPS
299 frames in 5.0 seconds = 59.647 FPS
299 frames in 5.0 seconds = 59.645 FPS
299 frames in 5.0 seconds = 59.645 FPS
298 frames in 5.0 seconds = 59.446 FPS

Mats
 
Old 10-24-2013, 04:05 PM   #3
GazL
Senior Member
 
Registered: May 2008
Posts: 3,476

Original Poster
Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
Yep. I get the same with the NVIDIA driver when sync to vblank is enabled (I think it's on by default these days, but it didn't used to be). What seems to be happening with nouveau however is that glxgears thinks sync is enabled when it isn't. When sync isn't enabled you usually don't get that "Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate." message.

When I turn sync off while using the proprietary drivers I get around 15,000 - 16,000 fps, with this card.


Anyway, as I said, not an earth shattering issue.
 
Old 10-25-2013, 12:16 AM   #4
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,647
Blog Entries: 15

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
Are you using driconf to set the sync to vblank?
 
Old 10-25-2013, 04:57 AM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 3,476

Original Poster
Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
I was testing on a completely fresh install of 14.1RC2 so it will have been whatever the default value us.
 
Old 10-25-2013, 04:50 PM   #6
ReaperX7
Senior Member
 
Registered: Jul 2011
Location: California
Distribution: LFS-7.6, Slackware 14.1, FreeBSD 10.1
Posts: 3,647
Blog Entries: 15

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
The default value is usually disabled vblank so it's running at the highest speed possible.
 
Old 10-25-2013, 05:01 PM   #7
GazL
Senior Member
 
Registered: May 2008
Posts: 3,476

Original Poster
Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
Yes, that was clear from the reported fps values and was what lead me to post this query in the first place.
 
Old 10-25-2013, 08:43 PM   #8
gabrielmagno
Member
 
Registered: May 2009
Location: Belo Horizonte, Brasil
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Have you tried changing the variable vblank_mode?

In my machine (not NVIDIA, just for exemplification):

Code:
$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.259 FPS
300 frames in 5.0 seconds = 59.947 FPS
300 frames in 5.0 seconds = 59.954 FPS


Code:
$ vblank_mode=1 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
17436 frames in 5.0 seconds = 3487.076 FPS
17606 frames in 5.0 seconds = 3520.454 FPS
17709 frames in 5.0 seconds = 3541.699 FPS


Code:
$ vblank_mode=2 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.281 FPS
300 frames in 5.0 seconds = 59.950 FPS
300 frames in 5.0 seconds = 59.951 FPS

Last edited by gabrielmagno; 10-25-2013 at 08:46 PM.
 
1 members found this post helpful.
Old 10-26-2013, 04:08 AM   #9
GazL
Senior Member
 
Registered: May 2008
Posts: 3,476

Original Poster
Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
Code:
test@rc2:~$ glxgears    
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
7559 frames in 5.0 seconds = 1511.667 FPS
^C
test@rc2:~$ vblank_mode=0 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
7617 frames in 5.0 seconds = 1523.288 FPS
^C
test@rc2:~$ vblank_mode=1 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
7617 frames in 5.0 seconds = 1523.270 FPS
7620 frames in 5.0 seconds = 1523.851 FPS
^C
test@rc2:~$ vblank_mode=2 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
7615 frames in 5.0 seconds = 1522.801 FPS
7616 frames in 5.0 seconds = 1523.098 FPS
^C
test@rc2:~$
Doesn't seem to make the slightest difference in default mode.

However, after adding:
Code:
# /etc/X11/xorg.conf.d/90-nouveau.conf #################################

Section "Device"
  Identifier "nouveau"
    Driver "nouveau"
    Option "GLXVBlank" "on"
EndSection

########################################################################
I get the same behaviour as you:
Code:
test@rc2:~$ glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.425 FPS
300 frames in 5.0 seconds = 59.998 FPS
^C
test@rc2:~$ vblank_mode=1 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
7618 frames in 5.0 seconds = 1523.443 FPS
7619 frames in 5.0 seconds = 1523.650 FPS
^C
test@rc2:~$ vblank_mode=2 glxgears
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
303 frames in 5.0 seconds = 60.406 FPS
300 frames in 5.0 seconds = 59.998 FPS
^C
So, seems if the setting is on in xorg.conf, I can override it to 'off', but if the setting is 'off', it thinks it's 'on', but it's actually 'off' and the override makes little difference.

Oh well... I'll just put this down to nouveau/mesa being buggy.

Last edited by GazL; 10-26-2013 at 05:01 AM. Reason: clarification.
 
Old 10-26-2013, 04:17 AM   #10
GazL
Senior Member
 
Registered: May 2008
Posts: 3,476

Original Poster
Rep: Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014Reputation: 1014
BTW, seems you're getting twice the unsynced frame-rate I do, what card do you have?
 
Old 10-26-2013, 09:22 AM   #11
gabrielmagno
Member
 
Registered: May 2009
Location: Belo Horizonte, Brasil
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by GazL View Post
BTW, seems you're getting twice the unsynced frame-rate I do, what card do you have?
It's an Intel HD Graphics 4000.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID1: Urgent.. Two disks out of sync... how to get them back in sync? tkalfaoglu Linux - Server 1 10-18-2013 04:42 AM
LXer: BitTorrent Sync: Automatically sync files on your Linux Devices LXer Syndicated Linux News 0 10-04-2013 04:50 PM
LXer: Linux, 2.6.23-rc2,"-rc2 is the new -rc1" LXer Syndicated Linux News 0 08-04-2007 08:31 PM
LXer: Nouveau: glxgears on NV4x LXer Syndicated Linux News 0 01-28-2007 01:33 PM
9800 PRO glxgears blank period3 Suse/Novell 0 06-07-2005 08:00 PM


All times are GMT -5. The time now is 07:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration