26 February 2016, 04:33 | #1 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
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. |
26 February 2016, 09:36 | #2 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
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. |
26 February 2016, 11:30 | #3 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
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 ) |
26 February 2016, 12:17 | #4 |
Speedbump gimme goosebump
|
Try your usual setup with double buffering maybe
|
26 February 2016, 12:53 | #5 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
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 |
26 February 2016, 14:07 | #6 |
Registered User
Join Date: Aug 2004
Location:
Posts: 3,336
|
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.
|
26 February 2016, 14:17 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
Sorry but that is unsupported, especially in vsync mode. It would need totally different and incompatible sync method.
|
26 February 2016, 15:29 | #8 |
Registered User
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
|
Ok np, but to be clear I'm talking about occasional double frames during normal usage - not while recording. Does it make any difference?
|
26 February 2016, 22:00 | #9 |
Speedbump gimme goosebump
|
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. |
27 February 2016, 08:47 | #10 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
|
|
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 |
|
|