Keyboard Delay with Vsync On

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Keyboard Delay with Vsync On

Post by doongas »

Here is my problem and i can't seem to fix it..
i am using zsnes with sony vaio laptop with 786 rams and 1.6ghz centrino
and winxp

when i turn on vsync or triple buffer i get the keyboard delay after playing for few seconds...

keyboard delay is like when i press the keys the control move much later.. its like slow reaction..

I tried all the resolutions and special effects(interpolation, Sai etc..) and they runs 60fps all the time but with vsync on, delay starts to happen.. framerate is still 60fps though..

well if i turn the vsync off, the game becomes responsive but become very ugly... :( look like some choppy waves of tearing moves up & down..

Snes9x dont have delay problem with full screen double buffer on..

i tried older version 1.36 and WIP version they seem to have the same problem.. also i tried deleting CFG files and reinstalling 1.42 on different folder etc...

can anyone please help?
thanks for reading my post..
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

That's a very odd problem. Do you have the latest video drivers and DirectX?
[u][url=http://bash.org/?577451]#577451[/url][/u]
snkcube
Hero of Time
Posts: 2646
Joined: Fri Jul 30, 2004 2:49 am
Location: In front of the monitor
Contact:

Post by snkcube »

Is there any programs running in the background?
Try out CCleaner and other free software at Piriform
Image
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Does the keyboard delay occur only after/during playing a game?

I have noticed that there will be some short keyboard response delays within zsnes (just using the GUI) if the system is taxed. But not in the way you describe.
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

thanks for the response..

yes i recently updated the video driver (intel extreme graphics 2)

i had no background programming running except wireless LAN and virus scanner( i disabled it)

the delay starts sometimes in a certain section of the game and then continues on.. for example in ninja gaiden, when press up and i climb up the building the ninja just keeps stuck on the building trying to climb up at the top even the button is not pressed.. when i wanna jump away from the building, so i press jump button and left.. ninja jumps off the building after like 2-3 seconds later...

another example, Area88( U.N squadron) game.. when i move the plane in the beginning, it moves ok.. when the scene get bit intensive and i press left right up down continueosly and fast to dodge the bullets, the plane suddenly go crazy and move in total delay like some hacker remotely controlling the plane or some ghost controlling the plane..
At the time when the delay happens i try to open the zsnes menu (press esc) even the zsnes menu opens in delay! (which after the plane have finished moving from delayed actions)...
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

I'm going to hazard a guess..

Although I believe integrated video is complete crap (especially of the Intel variety), you probably need to assign more memory to the integrated video card via the BIOS.

Though, I honestly don't know how much video memory ZSNES normally consumes...

Since Triple Buffering consumes more video memory, not having enough video memory causes problems...
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

yes i know the integrated cards are crap especially intel..
my doubt goes with the video card....
but zsnes works at 60fps as well as other emulators like kawaks nebula snes9x etc..

intel extreme gfx 2 dont have the HW T&L but with my laptop's CPU i got 4000 on 3dmark01 SE build 330 on 640X480 res.. which is comparable to geforce2 mx with Pent3 at least..

i tried the bios and there is no such option to manually assign the video ram to 64mb max..

could it still be the crappy intel integrated card fault?
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

I fixed it!!!

what i did was i switched off wireless button on my laptop which disconnects all the wireless network/internet connections...

zsnes works flawlessly now without any delays!! thanks everyone!!
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

:x ARRRGGHH... the problem came back again... last time was just lucky.. i think its the intel extreme graphics 2 that is causing the problem with zsnes.... :cry:
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

People who use Intel's integrated graphics have had problems before as well, so you are not alone. Just get a graphics card.
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

i wont be able to upgrade video card in my laptop...

i just find something amazing.. something to prove that there is nothing wrong with zsnes.... i just tried the latest wgens genesis emulator and exactly same thing happened with vsync on!! it started delaying after sometime in the game..

i can now confirm that its my vga card...
but strangely i dont get this problem with nebula that does neogeo & cps2 emulation and i have the vsync on all the time..
Guest

Post by Guest »

From my experience Intel is inferior.Im investing in AMD next purchase.
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

doongas wrote:i wont be able to upgrade video card in my laptop...

i just find something amazing.. something to prove that there is nothing wrong with zsnes.... i just tried the latest wgens genesis emulator and exactly same thing happened with vsync on!! it started delaying after sometime in the game..

i can now confirm that its my vga card...
but strangely i dont get this problem with nebula that does neogeo & cps2 emulation and i have the vsync on all the time..
Sorry, I forgot that you use a laptop.

What happens if you turn VSync off? Have you tried Tripple Buffering in it's place. Are you using Auto Frameskip?
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

yes i am using the Auto Frameskip

Vsync OFF = No Delay, Tearing
Vsync ON = Delay
Vsync ON + Tripple Buffer = Delay
Tripple Buffer = Delay


same thing goes to WGENS (genesis emulator) but when Vsync is off WGENS have less ugly tearing.. tearing seems smoother.. Zsnes Tearing seriously choppy and moves up and down..
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

doongas wrote:same thing goes to WGENS (genesis emulator) but when Vsync is off WGENS have less ugly tearing.. tearing seems smoother.. Zsnes Tearing seriously choppy and moves up and down..
Because WGENS' actual framerate is closer to the display's framerate.
Run a more demanding SNES game, and the result could be different.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

creaothceann wrote:
doongas wrote:same thing goes to WGENS (genesis emulator) but when Vsync is off WGENS have less ugly tearing.. tearing seems smoother.. Zsnes Tearing seriously choppy and moves up and down..
Because WGENS' actual framerate is closer to the display's framerate.
Run a more demanding SNES game, and the result could be different.
i didnt get what you said "actual framerate is closer to the display's framerate" both zsnes and wgens framerate display says 60 all the time..

zsnes tearing looks similar to kawaks tearing on my laptop..
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

It almost seems as if your Intel isn't fast enough to handle VSync or Triple Buffering, hence the tearing.
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

doongas wrote:i didnt get what you said "actual framerate is closer to the display's framerate" both zsnes and wgens framerate display says 60 all the time..
ZSNES and WGENS emulate consoles at 60 fps, but they may be finished before or after your LCD has displayed a full screen. Hence the actual framerate of the emulators may be from 60.0 to 60.99999...
The VSync code catches the part behind the point.
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
Agozer
16-bit Corpse | Nyoron~
Posts: 3534
Joined: Sun Aug 01, 2004 7:14 pm
Location: Nokia Land

Post by Agozer »

It just occurred to me... Have you tried starting ZSNES with the -6 switch and then enabling VSync?
whicker: franpa is grammatically correct, and he still gets ripped on?
sweener2001: Grammatically correct this one time? sure. every other time? no. does that give him a right? not really.
Image
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

thanks for the vsync framerate info..

anyways i tried -6 option.. delay still exists but may be less..
delay seems more rare maybe because of -6 or i closed all apps and turned wireless off...

whats does -6 options do anyways?
kevman
Redneck Gamer-Mod
Posts: 433
Joined: Wed Aug 04, 2004 2:15 am
Location: Pittsburgh

Post by kevman »

Forces the refresh rate of your monitor to 60Hz, which is what NTSC super Nintendo games are designed to display. It prevents nasty tearing and lag effects as Zsnes tries to display at incompatible rates (if your monitor is set at 85Hz, and the game only updates at 60Hz, what do you do about the extra 15Hz)
SHREIK!!!!!!! DDdddnnnnnnaaaa! GESTAHLLLLLLLLLL!!!!!!!!

Steelers now officially own your ass.
adventure_of_link
Locksmith of Hyrule
Posts: 3634
Joined: Sun Aug 08, 2004 7:49 am
Location: 255.255.255.255
Contact:

Post by adventure_of_link »

The -6 option forces your screen to refresh @ 60Hz while ZSnes is running. This was inserted because some people were having problems using ZSnes @ <insert random frequency that is between 61-119 here>.
Agozer: Some laptops are fixed, and some are flexible. Meaning:
Flexible - Your hard drive dies, and you're like "Ohh noez!!!" But you can pay $40 or so to get another one for it, and replace it with little to no problem.
Fixed - Your hard drive dies, and you need to replace it, but you can't, because it's integrated into the whole board, and can't be easily replaced, if not impossible.
EDIT: Dammit, Kevman beat me to the Submit button, but thankfully my -6 description was valid :D
<Nach> so why don't the two of you get your own room and leave us alone with this stupidity of yours?
NSRT here.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

Controlled Force wrote:From my experience Intel is inferior.Im investing in AMD next purchase.
For laptop CPUs, it's the other way round though. The Pentium-M is Intel's only decent offering right now. We'll be seeing more of this CPU in our desktops if Intel is smart and discontinues it's floundering P4 line in favour of improved Pentium-M based processors to finally compete with AMD in performance terms. Intel graphics on the otherhand is garbage (but on a laptop it does the job and has lower power requirements etc.)

As for the thread, perhaps the Intel graphics cannot handle the additional overhead of the vsync/triple buffering. Lowering the resolution and using a DR mode could remedy this if you are using your laptop's native resolution, although you'll get some nasty scaling artifacts on the screen though the LCD limitation of not being able to use a different resolution other than native. If this is the case, then pick your poison.
doongas
Rookie
Posts: 11
Joined: Wed May 25, 2005 3:01 am
Location: deep inside of the rat hole

Post by doongas »

With -6 option and vsync off tearing is much smoother like in wgens.. i could now stick with this tearing but....

Clements wrote:
Controlled Force wrote:From my experience Intel is inferior.Im investing in AMD next purchase.
For laptop CPUs, it's the other way round though. The Pentium-M is Intel's only decent offering right now. We'll be seeing more of this CPU in our desktops if Intel is smart and discontinues it's floundering P4 line in favour of improved Pentium-M based processors to finally compete with AMD in performance terms. Intel graphics on the otherhand is garbage (but on a laptop it does the job and has lower power requirements etc.)

As for the thread, perhaps the Intel graphics cannot handle the additional overhead of the vsync/triple buffering. Lowering the resolution and using a DR mode could remedy this if you are using your laptop's native resolution, although you'll get some nasty scaling artifacts on the screen though the LCD limitation of not being able to use a different resolution other than native. If this is the case, then pick your poison.
I have tried the lowest DR resolution and delay is still there with vsync on.. How can you explain why i don't get this problem with Snes9x?
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

Just use Snes9x then. It's not the end of the world - it's a brilliant emulator.

For the record, I never never experienced any keyboard lag in ZSNES with 4 different computers, one of which has Intel graphics of uni workstations, one being equiped with a 6800 Ultra. Never had any tearing either. I use joypads anyway. Again no lag.
Post Reply