MAMEWorld >> News
View all threads Index   Flat Mode Flat  

Blur Busters
MAME Fan
Reged: 03/13/13
Posts: 30
Send PM
Ultra Low Input Lag (10ms less!) via fixed-refresh 60Hz G-SYNC for emulators
10/24/13 12:01 PM


G-SYNC is a variable refresh rate technology announced by NVIDIA, running dynamically at 30Hz->144Hz. Monitor refreshes immediately upon Direct3D frame presentation, instead of waiting till the next VSYNC. Before, 60Hz monitors needed 1/60sec to transmit the refresh from the GPU to the monitor. Not anymore. In a G-SYNC monitor, the frame transmission time is always 1/144sec, even during 60fps.

Apparently, this makes it possible to do ultralow input lag 60Hz for emulators!

For developers, it is actually very simple to run G-SYNC at a fixed refresh rate: Basically, emulator runs at 60fps@60Hz, but with frame transmission times of 1/144th of a second from GPU to display. In G-SYNC mode, you just simply do Direct3D Present() 60 times a second accurately (based on QueryPerformanceCounter()), and viola! G-SYNC 144Hz running at 60fps@60Hz.

1/60sec frame transmission to monitor = 16.7ms (traditional VSYNC at 60Hz)
1/144sec frame transmission to monitor = 6.9ms (G-SYNC)
Input lag reduction = almost 10ms

To Emulator Users: Tell your emulator creators, link to this post.
To Emulator Creators: It's a very simple programming change to emulators:
- A command line option or mode that ignores VSYNC, and instead uses microsecond-accurate timer to call Direct3D Present(). This allows the emulator to control a G-SYNC monitor's immediate refresh (e.g. 50Hz or 60Hz). The emulator briefly runs as fast as possible for 1/60sec (surged emulation execution) then frame is immediately delivered as fast as possible to the monitor (in 1/144sec) without waiting for VSYNC. Rinse and repeat 60 times a second. Low input lag bliss.

Mark Rejhon
Blur Busters Blog | Blur Busters Forums

Edited by Blur Busters (12/25/13 07:59 PM)







Entire thread
Subject Posted by Posted on
* Ultra Low Input Lag (10ms less!) via fixed-refresh 60Hz G-SYNC for emulators Blur Busters 10/24/13 12:01 PM
. * Re: Ultra Low Input Lag (10ms less!) via fixed-refresh 60Hz G-SYNC for emulators Lewis King  10/24/13 03:38 PM
. * Too slow, hot shot. StilettoAdministrator  10/24/13 03:18 PM
. * Re: Too slow, hot shot. Blur Busters  10/25/13 02:52 AM
. * Re: Too slow, hot shot. Heihachi_73  10/26/13 07:55 PM
. * Re: Too slow, hot shot. Blur Busters  10/26/13 11:59 PM
. * Re: Too slow, hot shot. Anonymous  10/27/13 12:46 AM
. * Re: Too slow, hot shot. Anonymous  10/26/13 09:46 PM
. * Damn DiodeDude  10/25/13 03:55 AM
. * Re: Damn SailorSat  10/25/13 10:18 AM
. * Re: Damn Blur Busters  10/25/13 08:45 PM
. * Examples? DiodeDude  10/25/13 11:18 AM
. * Re: Examples? SailorSat  10/25/13 11:40 AM
. * Re: Examples? Anonymous  10/26/13 07:20 AM
. * Re: Examples? R. Belmont  10/28/13 04:33 PM
. * Further vendor lock-in StilettoAdministrator  10/31/13 11:12 PM
. * Re: Further vendor lock-in Anonymous  11/02/13 11:12 AM
. * This DiodeDude  10/26/13 04:45 PM
. * Re: Examples? Calamity  10/25/13 01:32 PM
. * Re: Examples? Blur Busters  10/25/13 08:43 PM
. * Re: Examples? Calamity  10/25/13 10:31 PM
. * Re: Examples? Blur Busters  10/25/13 11:36 PM
. * Re: Too slow, hot shot. R. Belmont  10/24/13 05:15 PM
. * Re: Too slow, hot shot. Firehawke  10/24/13 03:41 PM
. * Re: Too slow, hot shot. Calamity  10/24/13 06:34 PM
. * Re: Too slow, hot shot. Blur Busters  10/25/13 02:49 AM
. * Re: Too slow, hot shot. R. Belmont  10/24/13 07:52 PM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 317 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5132