Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ZSNES and VSYNC (SOLVED)
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
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 794
Location: Columbus, OH

PostPosted: Sun Dec 11, 2005 8:58 pm    Post subject: ZSNES and VSYNC (SOLVED) Reply with quote

I've noticed a shortcoming in the Linux version of ZSNES. It does not have a VSYNC option in the video config section. I find this strange, because it's there in the Windows version, and lack of VSYNC causes noticeable image tearing. Did I do something wrong when I installed it, or does anyone know if there is a way to set it somewhere else? I don't remember seeing a USE flag for it. Is it something that has to be set via SDL instead of through ZSNES itself?

Last edited by Akaihiryuu on Mon Dec 19, 2005 8:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
prg
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2005
Posts: 94

PostPosted: Sun Dec 11, 2005 10:00 pm    Post subject: Reply with quote

maybe you could try using an opengl mode and activate vsync in your drivers, like setting __GL_SYNC_TO_VBLANK=1 for nvidia cards
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 794
Location: Columbus, OH

PostPosted: Sun Dec 11, 2005 11:14 pm    Post subject: Reply with quote

Ah...so it's a driver option? All my machines have cards that work with the open source radeon driver...any idea how I'd set that option with that driver?
Back to top
View user's profile Send private message
prg
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2005
Posts: 94

PostPosted: Sun Dec 11, 2005 11:41 pm    Post subject: Reply with quote

don't know, sorry, never used an ati card, but at least the closed source drivers should have a config tool for that
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 794
Location: Columbus, OH

PostPosted: Wed Dec 14, 2005 3:14 am    Post subject: Reply with quote

I don't see anything about it in my video card driver options...pretty much been through anything. I did discover if I enable page flipping without also enabling renderaccel, it goes REALLY slow, but with both enabled everything works great. Ah well...it looks like either the Linux version of ZSNES just isn't capable of VSYNC, or it's an option that has to be set through SDL itself.
Back to top
View user's profile Send private message
mnxAlpha
Apprentice
Apprentice


Joined: 15 Sep 2004
Posts: 210

PostPosted: Wed Dec 14, 2005 5:20 am    Post subject: Reply with quote

Actually, X itself has no concept of vsync (unless you're using OpenGL).
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 794
Location: Columbus, OH

PostPosted: Fri Dec 16, 2005 9:21 pm    Post subject: Reply with quote

Right...I am running ZSNES in OpenGL mode though, so you'd think there would be VSYNC support...I can't find it in the Linux version though.
Back to top
View user's profile Send private message
na641
Apprentice
Apprentice


Joined: 27 Jun 2002
Posts: 169
Location: Eugene, OR

PostPosted: Sun Dec 18, 2005 9:43 pm    Post subject: Reply with quote

i have the same issue as well. I have vsync enabled (through nvidia-settings) and it really doesn't help too much.
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 794
Location: Columbus, OH

PostPosted: Mon Dec 19, 2005 12:46 am    Post subject: Reply with quote

Ah well, I guess it's just an issue with the Linux version of ZSNES then. I can't believe they left VSYNC out.
Back to top
View user's profile Send private message
gaminggeek
Apprentice
Apprentice


Joined: 13 Nov 2003
Posts: 231
Location: New Zealand

PostPosted: Mon Dec 19, 2005 6:03 am    Post subject: Reply with quote

try

Code:
zsnes -w


help files are your friend :D
_________________
(\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 794
Location: Columbus, OH

PostPosted: Mon Dec 19, 2005 8:48 pm    Post subject: Reply with quote

Thanks...that did the trick. I wasn't expecting it to be a commandline switch, I was expecting it to be an option I could select in the configuration. Guess I should read man pages more often.
Back to top
View user's profile Send private message
cotu
n00b
n00b


Joined: 12 Sep 2004
Posts: 35

PostPosted: Thu Dec 22, 2005 2:00 am    Post subject: Reply with quote

don't bother, it doesn't do anything, the vysnc code that the -w switch activates is disabled in the linux version, it was meant for msdos. here's the subroutine it uses (the following routine will never be called in the linux version as it would just segfault it);
Code:

NEWSYM waitvsync
    mov dx,3DAh             ;VGA status port
;.loop
;    in al,dx
;    test al,8               ;check VR bit
;    jnz .loop               ;in middle of VR, better wait for next one
.loop2
    in al,dx
    test al,8
    jz .loop2               ;updating the screen
    ret

i'm not too familiar with the zsnes code, but i don't think there's any other routine in there for the linux version that actually does something with the vsyncon option that the -w switch toggles
Back to top
View user's profile Send private message
na641
Apprentice
Apprentice


Joined: 27 Jun 2002
Posts: 169
Location: Eugene, OR

PostPosted: Thu Dec 22, 2005 8:24 am    Post subject: Reply with quote

cotu wrote:
don't bother, it doesn't do anything, the vysnc code that the -w switch activates is disabled in the linux version, it was meant for msdos. here's the subroutine it uses (the following routine will never be called in the linux version as it would just segfault it);
Code:

NEWSYM waitvsync
    mov dx,3DAh             ;VGA status port
;.loop
;    in al,dx
;    test al,8               ;check VR bit
;    jnz .loop               ;in middle of VR, better wait for next one
.loop2
    in al,dx
    test al,8
    jz .loop2               ;updating the screen
    ret

i'm not too familiar with the zsnes code, but i don't think there's any other routine in there for the linux version that actually does something with the vsyncon option that the -w switch toggles


funny, i was just about to mention the odd fact that i have the same issue with -w. True, nvidia vsync works perfectly, but for some reason REALLY slows down cedega.

now if only i could figure out hwo to get zsnesw working with this new version of cedega...
Back to top
View user's profile Send private message
Tuna
Guru
Guru


Joined: 19 Jul 2002
Posts: 485
Location: Berlin

PostPosted: Thu Dec 22, 2005 8:59 am    Post subject: Reply with quote

which oss radeon driver are you using? r200 or r300? i dont know about the r300 but for the r200 you should take a look here: http://dri.freedesktop.org/wiki/ConfigurationInfrastructure . the r200 at least gives an option for enabling vsync. the lazy ones would try to emerge "driconf". although it is masked it should work and give an easy way to set options for the DRI ConfigurationInfrastructure .
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