English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 29 April 2008, 18:41   #1
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
50Hz sync -> mouse delay

I set my monitor at a refresh rate of 50Hz to have smooth scrollings. They are.

But it seems that whenever I tell WinUAE to wait for the vertical retrace (Fullscreen+VSync), there's a little mouse delay.

Is there a way to correct that ? Without VSync, some frames are lost and the scrolling isn't so smooth.
Groundhog is offline  
Old 29 April 2008, 18:57   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
Try adjusting priority setting (below normal or normal).
Toni Wilen is online now  
Old 29 April 2008, 19:34   #3
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Thanks for the suggestion but, unfortunately, no luck.

Another idea ?

EDIT :

By the way, is someone else experimenting this problem ?

Last edited by Groundhog; 29 April 2008 at 21:45.
Groundhog is offline  
Old 29 April 2008, 23:02   #4
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
You mean "experiencing".

Nope. I get no noticable delay.

Edit: Obviously the mouse responds quite differently in terms of acceleration and precision to the Windows mouse. But that is just normal and depends on your Windows and WinUAE settings

Last edited by alexh; 29 April 2008 at 23:11.
alexh is offline  
Old 29 April 2008, 23:11   #5
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Yes, "experiencing", sorry.

That's odd. No matter which config I choose, once I select VSync, there's a delay.

Could you compare with VSync on and off ? The difference is barely noticeable.

Edit : BTW, I worshipped "Chambers of Shaolin" when I was a kid.

Last edited by Groundhog; 29 April 2008 at 23:21.
Groundhog is offline  
Old 29 April 2008, 23:12   #6
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
I am using a 50Hz screen mode, dunno if it could be that?

I've not heard from Marc Rosocha (the main guy behind CoS) for a few years. He had some success on the Atari Jaguar and Nuon systems with his Iron Soldier series

Last edited by alexh; 29 April 2008 at 23:19.
alexh is offline  
Old 29 April 2008, 23:14   #7
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Damn, you're fast.

Well, as I explained, me too. Maybe I'm just short of a few milliseconds.

Edit : Didn't see your edit.

"Obviously the mouse responds quite differently in terms of acceleration and precision to the Windows mouse. But that is just normal and depends on your Windows and WinUAE settings"

I know that. But there's a little but noticeable difference when Vsync is on or off.

Last edited by Groundhog; 29 April 2008 at 23:21.
Groundhog is offline  
Old 29 April 2008, 23:19   #8
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
No noticable difference between Vsync and non Vsync.

A500+ Quickstart, Full screen + Vsync, double line mode, no filter, 720x576@50Hz

P4 2.4GHz Northwood.

WinUAE 1.4.6
alexh is offline  
Old 29 April 2008, 23:25   #9
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Too bad. I'm out of luck then. If somebody has an idea, please share.

Quote:
Originally Posted by alexh View Post
I've not heard from Marc Rosocha (the main guy behind CoS) for a few years. He had some success on the Atari Jaguar and Nuon systems with his Iron Soldier series
I don't remember this name. That's a shame I know. A talented guy anyway.

The only name I remember, because I'm a great fan of him and I'm a musician myself, is Jochen "Mad Max" Hippel. The CoS tunes rocked.

No news about him ?
Groundhog is offline  
Old 29 April 2008, 23:28   #10
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
I saw him at xmas 2006 and see him online all the time.
alexh is offline  
Old 29 April 2008, 23:35   #11
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Quote:
Originally Posted by alexh View Post
I saw him at xmas 2006 and see him online all the time.
OK man, now I don't remember why I started this thread.

Friend with a god.

I know this is idiot but I would kill for an autograph of him. I'm really a BIG fan. IMHO, Jochen Hippel & Rob Hubbard are the best composers on computer ever.

Lucky guy.
Groundhog is offline  
Old 30 April 2008, 16:25   #12
WDeranged
 
Posts: n/a
I think this is just a symptom of Vsync, 3d games also get a slight lag with vsync but you can solve this by reducing the amount of frames the card renders ahead.

Dont think this option affects 2d stuff though
 
Old 30 April 2008, 17:41   #13
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
The case you're describing is when your GPU is working (the "hardware computing"). Here, the software is causing the lag. There's no 3D computation, just some basic 2D blitting, so you don't need to tell the card to reduce the amount of frames to render ahead.

If we had a similar problem here, that would be an option in WinUAE, the software.

And I don't think that this has something to do with power. My computer is fast enough : Q6600 overclocked at 3.6Ghz. (I don't want to brag like a child, just to give precisions.)

So, any idea to correct the problem ?
Groundhog is offline  
Old 30 April 2008, 17:50   #14
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,518
Mouse lag has been reported multiple times. More commonly it seems to happen when JIT is enabled and priority is higher than normal. (=WinUAE is using all available CPU time)

Unfortunately (or fortunately?) I have never seen it. It seems to be PC/Windows version or mouse type/driver specific "feature".
Toni Wilen is online now  
Old 30 April 2008, 18:01   #15
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Quote:
Originally Posted by Toni Wilen View Post
Mouse lag has been reported multiple times. More commonly it seems to happen when JIT is enabled and priority is higher than normal. (=WinUAE is using all available CPU time)

Unfortunately (or fortunately?) I have never seen it. It seems to be PC/Windows version or mouse type/driver specific "feature".
Really ? Damn.

Then, I must report the fact that I'm using Vista x64 and that the problem appears even when JIT is disabled. Also, as I said, I'm using a quad-core cpu. My GPU is an ATI Radeon x1950pro (up to date, but there are reports that this card generates a lot of problems - I didn't experience any, but who knows...).

Hope it will help you catch the problem.

Thanks for the info.
Groundhog is offline  
Old 30 April 2008, 20:00   #16
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
Quote:
Originally Posted by WDeranged View Post
I think this is just a symptom of Vsync, 3d games also get a slight lag with vsync but you can solve this by reducing the amount of frames the card renders ahead.
Tearing (where the frame currently being rendered is displayed before rendering is finished) sucks especially in 3D games. I prefer to lower my resolution / quality rather than have vsync off.

Last edited by alexh; 30 April 2008 at 20:05.
alexh is offline  
Old 30 April 2008, 23:37   #17
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
Someone who cares about lag from input to output! (I. R. Baboon make victory dance)

Vsync waits until the next vertical refresh to switch buffers (to avoid tearing), while Vsync off does not, giving tearing - if the game fps differs (even slightly)from 50 Hz. No way around that.

I'm assuming you're not using a LCD display. I have a $1400 LCD display and have found no way of displaying any game or emu without lag. I guess it's partly buffer electronics in the display and partly the black-to-white specs of an LCD screen. Also, LCD screens normally do not sync to 50Hz, I assume you're emulating a PAL Amiga.

Me, I run WinUAE best with Cycle-Exact, No VSync on a CRT display that can go 50 Hz. Then the lag is reduced to an absolute minimum, 1/50 second (from emulated code to pixelbuffer - to pixelbuffer drawn by display)

I think the delay could be made 1/100 second, but only if cycle-exact is off and the PC is fast enough to render in 1/100 and display immediately, rather than wait for next 50Hz refresh. It doesn't seem to be the case - but maybe I'm wrong?
Photon is offline  
Old 01 May 2008, 01:33   #18
Groundhog
Registered User
 
Join Date: Apr 2008
Location: Belgium
Posts: 93
Quote:
Originally Posted by Photon View Post
Vsync waits until the next vertical refresh to switch buffers (to avoid tearing), while Vsync off does not, giving tearing - if the game fps differs (even slightly)from 50 Hz. No way around that.
Did I give you the impression that I didn't know all that ? You aren't the only "oldskool demo coder" here.

Quote:
Originally Posted by Photon View Post
I'm assuming you're not using a LCD display. I have a $1400 LCD display and have found no way of displaying any game or emu without lag. I guess it's partly buffer electronics in the display and partly the black-to-white specs of an LCD screen. Also, LCD screens normally do not sync to 50Hz, I assume you're emulating a PAL Amiga.
My LCD screen can go as low as 50Hz. That's the reason why, when VSync is on, the timings are good and the scrollings are smooth, and when VSync is off, the timings (and so the scrollings) are still nearly perfect.

BTW, I didn't ask for any explanation. My question was : how can I remove the mouse delay ? Nothing about screen tearing or a detailed explanation about screens. I'm not impressed anyway.

Quote:
Originally Posted by Photon View Post
Me, I run WinUAE best with Cycle-Exact, No VSync on a CRT display that can go 50 Hz. Then the lag is reduced to an absolute minimum, 1/50 second (from emulated code to pixelbuffer - to pixelbuffer drawn by display)

I think the delay could be made 1/100 second, but only if cycle-exact is off and the PC is fast enough to render in 1/100 and display immediately, rather than wait for next 50Hz refresh. It doesn't seem to be the case - but maybe I'm wrong?
In short, I won't limit myself to 'cycle-exact only' configurations. The problem appears as soon VSync is on, cycle-exact enabled or not.

Recapitulation :

With VSync on : smooth scrollings, mouse delay.
With VSync off : not so smooth scrollings (still 50Hz, just not exactly), no mouse delay.

And please, don't assume your interlocutor doesn't know unless he tells you. Thanks anyway for your help.

And for you only, IMHO, the problem comes from the way WinUAE communicates with the mouse driver. Maybe the interruption/polling frequency is too low/too high with some system configurations. Well, that's just speculation. I don't know how WinUAE is coded.

Even if it's marvelously coded. Thank you so much WinUAE !
Groundhog is offline  
Old 01 May 2008, 01:50   #19
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,354
Yeah, I think some gfx card drivers fake the vsync.

I have nVidia here and no delay.
alexh is offline  
Old 07 June 2008, 20:08   #20
Tony Landais
Zone Friend
 
Join Date: Mar 2003
Location: uk
Posts: 426
I don't have mouse lag with vsync neither in 50Hz or 60Hz with my ATI x1600 mobility radeon.
But I have a serious keyboard and joystick lag particulary notisable with Shadow of the beast and slamtilt... they need a much better response to be playable in my opinion.
Tony Landais is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
More flexible Vsync support to include Sync rates very close to 50hz jimmy2x2x request.UAE Wishlist 8 29 March 2011 20:45
ntsc at 50hz? Interceptor support.WinUAE 2 27 April 2010 20:26
50Hz sync in WinUAE Mark Wright support.WinUAE 54 27 March 2009 21:56
Mouse delay/lag DarrenHD support.WinUAE 7 27 October 2008 23:41
Problem with 50hz ancalimon support.WinUAE 2 05 July 2007 19:51

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:00.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09842 seconds with 13 queries