View previous topic :: View next topic |
Author |
Message |
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Sun Dec 11, 2005 8:58 pm Post subject: ZSNES and VSYNC (SOLVED) |
|
|
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 |
|
|
prg Tux's lil' helper
Joined: 14 Oct 2005 Posts: 94
|
Posted: Sun Dec 11, 2005 10:00 pm Post subject: |
|
|
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 |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Sun Dec 11, 2005 11:14 pm Post subject: |
|
|
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 |
|
|
prg Tux's lil' helper
Joined: 14 Oct 2005 Posts: 94
|
Posted: Sun Dec 11, 2005 11:41 pm Post subject: |
|
|
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 |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Wed Dec 14, 2005 3:14 am Post subject: |
|
|
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 |
|
|
mnxAlpha Apprentice
Joined: 15 Sep 2004 Posts: 210
|
Posted: Wed Dec 14, 2005 5:20 am Post subject: |
|
|
Actually, X itself has no concept of vsync (unless you're using OpenGL). |
|
Back to top |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Fri Dec 16, 2005 9:21 pm Post subject: |
|
|
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 |
|
|
na641 Apprentice
Joined: 27 Jun 2002 Posts: 169 Location: Eugene, OR
|
Posted: Sun Dec 18, 2005 9:43 pm Post subject: |
|
|
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 |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Mon Dec 19, 2005 12:46 am Post subject: |
|
|
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 |
|
|
gaminggeek Apprentice
Joined: 13 Nov 2003 Posts: 231 Location: New Zealand
|
Posted: Mon Dec 19, 2005 6:03 am Post subject: |
|
|
try
help files are your friend _________________ (\ /)
(O.o)
(> <)
This is Bunny. Copy Bunny into your signature to help him on his way to world domination |
|
Back to top |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 794 Location: Columbus, OH
|
Posted: Mon Dec 19, 2005 8:48 pm Post subject: |
|
|
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 |
|
|
cotu n00b
Joined: 12 Sep 2004 Posts: 35
|
Posted: Thu Dec 22, 2005 2:00 am Post subject: |
|
|
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 |
|
|
na641 Apprentice
Joined: 27 Jun 2002 Posts: 169 Location: Eugene, OR
|
Posted: Thu Dec 22, 2005 8:24 am Post subject: |
|
|
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 |
|
|
Tuna Guru
Joined: 19 Jul 2002 Posts: 485 Location: Berlin
|
Posted: Thu Dec 22, 2005 8:59 am Post subject: |
|
|
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 |
|
|
|