English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 26 February 2016, 04:33   #1
ED-209
Registered User

ED-209's Avatar
 
Join Date: Mar 2012
Location: OCP
Age: 37
Posts: 960
Cons & Pros of buffering vs no buffering

Something I've been meaning to ask about is the effects of buffering vs no buffering.

My usual setup is 50hz + low latency vsync + minimum sound buffer + no buffering.

With no buffering set it produce absolute minimum input lag, however on occasion, 1 video frame seems doubled which I presume is fail safe for audio buffer?

If I set triple buffering, there is of course more input lag, however I think there are never any doubled frames & the audio seems to have even less latency then with buffer disabled.

Is this about right?
My main reason for asking is the possibility of 'triple buffering' being the best option for video recording - since there are no doubled frames, tighter audio & input lag is irrelevant.
ED-209 is online now  
AdSense AdSense  
Old 26 February 2016, 09:36   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,542
Video recording should never skip any frames, it records everything that custom chipset emulation creates (both sound and video), even if it frame is not shown or it gets doubled (due to vsync issues).

I'd recommend not to use vsync or any other "special" options when recording, it can only cause extra slowdowns.

Above is only true if capture before filtering is enabled and fastest possible CPU is not enabled. Other config: not supported, too many odd things can happen with recording.
Toni Wilen is offline  
Old 26 February 2016, 11:30   #3
ED-209
Registered User

ED-209's Avatar
 
Join Date: Mar 2012
Location: OCP
Age: 37
Posts: 960
I use external software for recording anyway, so I mean running winuae in it's normal state.

The occasional double frame is noticeable on smooth scrolls (I remember reading some thread where you said a double frame was a better option then the sound skipping.)
Can this be stopped by disabling sound emulation or enabling buffering, or is unavoidable due to vsync in general?

And is there slightly less sound latency with buffering enabled? (or is just my imagination )
ED-209 is online now  
Old 26 February 2016, 12:17   #4
SquawkBox
Speedbump gimme goosebump
SquawkBox's Avatar
 
Join Date: Feb 2016
Location: France
Age: 43
Posts: 32
Send a message via ICQ to SquawkBox
Try your usual setup with double buffering maybe
SquawkBox is offline  
Old 26 February 2016, 12:53   #5
ED-209
Registered User

ED-209's Avatar
 
Join Date: Mar 2012
Location: OCP
Age: 37
Posts: 960
Have tried double buffering.

Also I've just discovered that double framing still happens with sound emulation disabled and buffering on.
Toni is there any way to avoid this so there is never any doubled frames, or is it some inevitable vsync issue
ED-209 is online now  
Old 26 February 2016, 14:07   #6
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,481
They may not be any solution to skipped or doubled frames if you're using an external program (which?) to record WinUAE instead of having WinUAE create the video file itself.
mark_k is offline  
Old 26 February 2016, 14:17   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,542
Sorry but that is unsupported, especially in vsync mode. It would need totally different and incompatible sync method.
Toni Wilen is offline  
Old 26 February 2016, 15:29   #8
ED-209
Registered User

ED-209's Avatar
 
Join Date: Mar 2012
Location: OCP
Age: 37
Posts: 960
Ok np, but to be clear I'm talking about occasional double frames during normal usage - not while recording. Does it make any difference?
ED-209 is online now  
Old 26 February 2016, 22:00   #9
SquawkBox
Speedbump gimme goosebump
SquawkBox's Avatar
 
Join Date: Feb 2016
Location: France
Age: 43
Posts: 32
Send a message via ICQ to SquawkBox
It wasn't clear at first whether you were speaking about video recording or normal usage,
but I think you made your point, meaning answer would be the same (unsupported) for both scenarios.
Should you have a few minutes to experiment, I'd go and ask the following :
Is the glitch you just described still noticeable if you simply plug a PS/2 keyboard
(or analog gamepad, having in mind this kind of gear belongs to a bygone era)
and play said smoothly scrolling game (or demo) with absolutely no USB device plugged in / configured ?
As for the sound buffer increment VS input lag, I assume you're used to allowing merely the minimal acceptable value,
but 1, even 2 might be a bit overkill, just saying.

Good luck!

Last edited by SquawkBox; 27 February 2016 at 00:03.
SquawkBox is offline  
Old 27 February 2016, 08:47   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,542
Quote:
Originally Posted by ED-209 View Post
Ok np, but to be clear I'm talking about occasional double frames during normal usage - not while recording. Does it make any difference?
It shouldn't happen but it can still happen, it depends on drivers, hardware, everything..
Toni Wilen is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple buffering atchoo support.WinUAE 29 30 November 2011 11:58
lha buffering source support.Apps 7 18 July 2011 16:53
flawless double buffering dalton Coders. General 2 17 May 2011 07:09
AGA double buffering using ChangeScreenBuffer() NovaCoder Coders. General 1 03 November 2010 00:34
Upgrading KS/WB on an A500 - pros and cons? AB Positive New to Emulation or Amiga scene 5 14 May 2009 20:33

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 03:39.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16817 seconds with 11 queries