[Mouse Mod] Got the gear, how to best use it?

Everything about latency. Tips, testing methods, mouse lag, display lag, game engine lag, network lag, whole input lag chain, VSYNC OFF vs VSYNC ON, and more! Input Lag Articles on Blur Busters.
User avatar
jorimt
Posts: 2481
Joined: 04 Nov 2016, 10:44
Location: USA

Re: [Mouse Mod] Got the gear, how to best use it?

Post by jorimt » 21 Aug 2017, 09:20

If you can isolate the approximate delay of the monitor by eliminating the delay incurred by the testing method, mouse, and system, that number would apply to anyone with the same monitor; it wouldn't matter if they had a different system or mouse, as you already eliminated the differences that they would be seeing on their systems from differing components.

Again though, the number you generate is going to be approximate at best, and depending on what program you test with, and what sort of syncing methods you have applied, as the Chief already stated, you'll have to eliminate them from the totals as well.

Regarding sample size, there are multiple variables involved that will make every single sample a little different, from the USB poll (<1ms variation), mouse LED light response (<1ms variation), and camera capture (<1ms variation), to the system response itself. This is why it is best to do something like 4 sets of 10. E.g. click ten times, stop recording, repeat process four times, then add up and average out all the numbers by min/avg/max.
(jorimt: /jor-uhm-tee/)
Author: Blur Busters "G-SYNC 101" Series

Displays: ASUS PG27AQN, LG 48CX VR: Beyond, Quest 3, Reverb G2, Index OS: Windows 11 Pro Case: Fractal Design Torrent PSU: Seasonic PRIME TX-1000 MB: ASUS Z790 Hero CPU: Intel i9-13900k w/Noctua NH-U12A GPU: GIGABYTE RTX 4090 GAMING OC RAM: 32GB G.SKILL Trident Z5 DDR5 6400MHz CL32 SSDs: 2TB WD_BLACK SN850 (OS), 4TB WD_BLACK SN850X (Games) Keyboards: Wooting 60HE, Logitech G915 TKL Mice: Razer Viper Mini SE, Razer Viper 8kHz Sound: Creative Sound Blaster Katana V2 (speakers/amp/DAC), AFUL Performer 8 (IEMs)

Halfwit
Posts: 6
Joined: 16 Aug 2017, 09:27

Re: [Mouse Mod] Got the gear, how to best use it?

Post by Halfwit » 29 Aug 2017, 05:57

Getting back with some results. I listened to your suggestions and went with the following:

CS:GO - Map_Flood (custom map with white/black box)
144 Hz
G-Sync ON
V-Sync OFF
max_fps 0 (was getting ~2.000 FPS)
Modded Microsoft Intellimouse Explorer 1.1 @ 1000 Hz

Button-to-pixel response time was consistently sitting between 30 and 32 ms in each run (I did about 50 of them). I measured the time from the first glimpse of light on the LED to the first visible on-screen movement. I was recording the entire screen and mouse left click was bound to "Move Left".

Here's what I subtracted from that:

LED reaction time: 1 ms
Camera: 1 ms
USB polling rate: 1 ms
Mouse click latency (measured): 14-17 ms
TOTAL: 17-20 ms

WIth all of that in mind, it would appear that the monitor input lag is sitting between 10 and 15 ms.

Any thoughts on my process and results? As always, your input is greatly appreciated!

User avatar
lexlazootin
Posts: 1251
Joined: 16 Dec 2014, 02:57

Re: [Mouse Mod] Got the gear, how to best use it?

Post by lexlazootin » 29 Aug 2017, 06:57

30-32ms of total latency seems a bit high to me, When i had the same setup but with a G302 i mesured about 10ms~ total.

I got around that result with V-Sync on. Try turning off G-Sync in the NVCP and using a native resolution with scaling disabled. I doubt it will help but it is awfully high.

https://docs.google.com/spreadsheets/d/ ... sp=sharing

https://docs.google.com/spreadsheets/d/ ... sp=sharing

if you wish to see my results, one of those is a mouse bump test and one was done with a led soldered to mouse.

Halfwit
Posts: 6
Joined: 16 Aug 2017, 09:27

Re: [Mouse Mod] Got the gear, how to best use it?

Post by Halfwit » 29 Aug 2017, 07:27

I'll redo my tests tomorrow, I think I found a mistake in my procedure, related to the end-frame detection. I wasn't paying attention to the top of the screen, where a first glimpse of movement can be seen.

I'll post again tomorrow after I recheck and recalculate everything!

User avatar
jorimt
Posts: 2481
Joined: 04 Nov 2016, 10:44
Location: USA

Re: [Mouse Mod] Got the gear, how to best use it?

Post by jorimt » 29 Aug 2017, 22:19

You want to test with G-SYNC disabled, V-SYNC disabled, and fps_max 0. Anything else is going to add delay, even G-SYNC, as it has to wait to start each frame scan at top of each scanout; you're not testing for differences in syncing methods, you're trying to get the frame to display as soon as possible to deduce monitor latency.

With G-SYNC/V-SYNC off and an uncapped framerate reaching 2000+, the frame scan can start anywhere on-screen and will show as a tearline, so be sure to look carefully for the first reaction, as it will be harder to spot/predict than synced due to what will look like random placement.

As for subtracting those numbers for final results, if you do enough separate runs and average the samples, it should mostly eliminate those variables without you having to manually remove them from the final numbers; that's what the multiple runs are for.

So to be clear:
LED, camera, USB poll = they randomly alternate anywhere between 0-1ms each (don't manually remove from final results)
Mouse click = 14-17ms (manually remove average of that range from final results)

Again, this won't be exact, but it will get you in the ballpark of the monitor's latency.

Once you have your new results, check TFTCentral; they may have reviewed your test monitor already, at which point you can see how closely your results line up with theirs.
(jorimt: /jor-uhm-tee/)
Author: Blur Busters "G-SYNC 101" Series

Displays: ASUS PG27AQN, LG 48CX VR: Beyond, Quest 3, Reverb G2, Index OS: Windows 11 Pro Case: Fractal Design Torrent PSU: Seasonic PRIME TX-1000 MB: ASUS Z790 Hero CPU: Intel i9-13900k w/Noctua NH-U12A GPU: GIGABYTE RTX 4090 GAMING OC RAM: 32GB G.SKILL Trident Z5 DDR5 6400MHz CL32 SSDs: 2TB WD_BLACK SN850 (OS), 4TB WD_BLACK SN850X (Games) Keyboards: Wooting 60HE, Logitech G915 TKL Mice: Razer Viper Mini SE, Razer Viper 8kHz Sound: Creative Sound Blaster Katana V2 (speakers/amp/DAC), AFUL Performer 8 (IEMs)

User avatar
Chief Blur Buster
Site Admin
Posts: 11647
Joined: 05 Dec 2013, 15:44
Location: Toronto / Hamilton, Ontario, Canada
Contact:

Re: [Mouse Mod] Got the gear, how to best use it?

Post by Chief Blur Buster » 29 Aug 2017, 23:20

LED reaction time: 1 ms
Camera: 1 ms
USB polling rate: 1 ms
Adding comments:

Instead of subtracting these numbers, it's best to mention these as simply error margin -- basically a USB poll may mean the result is only 200 microseconds old, or 800 microsecond old. So error margin is a 0ms-3ms range for all of the error factors adding up together. Given some of these factors are more like ~0ms-to-~1ms error jitter, rather than a constant 1ms error. that means you have error jittering of 0-3ms, rather than a constant average of +3ms from these factors. So instead of subtracting these numbers, simply document the possible error margins.

Also "first anywhere-on-screen reaction" versus "first center-of-screen reaction" can be both legitimate lag measurement methods, but they can also result in totally different results depending on monitor, refresh rate, sync settings, etc. Make sure you also document which reaction you are measuring until.
Head of Blur Busters - BlurBusters.com | TestUFO.com | Follow @BlurBusters on Twitter

Image
Forum Rules wrote:  1. Rule #1: Be Nice. This is published forum rule #1. Even To Newbies & People You Disagree With!
  2. Please report rule violations If you see a post that violates forum rules, then report the post.
  3. ALWAYS respect indie testers here. See how indies are bootstrapping Blur Busters research!

Halfwit
Posts: 6
Joined: 16 Aug 2017, 09:27

Re: [Mouse Mod] Got the gear, how to best use it?

Post by Halfwit » 30 Aug 2017, 02:39

Fantastic advice from both of you, I'll take all of that into consideration before doing a fresh batch of measurements.

Any suggestions how to make the first movement a bit easier to spot? This is one of my video samples:

https://www.dropbox.com/s/gdx04srctzbdw ... 1.MOV?dl=0

Due to the low resolution @ 1200 FPS and the distance which I need to push the camera to in order to capture the whole screen, it's super hard to spot movement. Is there anything from your experience that could make it a bit easier?

User avatar
lexlazootin
Posts: 1251
Joined: 16 Dec 2014, 02:57

Re: [Mouse Mod] Got the gear, how to best use it?

Post by lexlazootin » 30 Aug 2017, 06:17

Film vertically and just get the black/white strip and the led in the shot.

Wouldn't something like a 1ms polling rate add on average 0.5ms total if you took enough runs? I had a idea of latency testing with a 30fps camera and simply getting enough results to make a conclusion that was a accurate as a 1000fps camera just due to how averages work. Wouldn't that work?

User avatar
jorimt
Posts: 2481
Joined: 04 Nov 2016, 10:44
Location: USA

Re: [Mouse Mod] Got the gear, how to best use it?

Post by jorimt » 30 Aug 2017, 08:28

Halfwit wrote:Fantastic advice from both of you, I'll take all of that into consideration before doing a fresh batch of measurements.

Any suggestions how to make the first movement a bit easier to spot? This is one of my video samples:

https://www.dropbox.com/s/gdx04srctzbdw ... 1.MOV?dl=0

Due to the low resolution @ 1200 FPS and the distance which I need to push the camera to in order to capture the whole screen, it's super hard to spot movement. Is there anything from your experience that could make it a bit easier?
Like lexlazootin said above, align the white/black separation like I did in the second example in my article vid (17 second mark):
http://www.blurbusters.com/wp-content/u ... op.mp4?_=1

You want to align the camera so it looks like a single vertical white/black separation that swipes horizontally across the screen on click. Start the white or black separation at the very left or right of the screen, then start sample capture.

This will make it way easier to spot first reaction.

Also make sure your mouse isn't moving when you click it. This threw off my results until I ultimately placed tape over the sensor.
(jorimt: /jor-uhm-tee/)
Author: Blur Busters "G-SYNC 101" Series

Displays: ASUS PG27AQN, LG 48CX VR: Beyond, Quest 3, Reverb G2, Index OS: Windows 11 Pro Case: Fractal Design Torrent PSU: Seasonic PRIME TX-1000 MB: ASUS Z790 Hero CPU: Intel i9-13900k w/Noctua NH-U12A GPU: GIGABYTE RTX 4090 GAMING OC RAM: 32GB G.SKILL Trident Z5 DDR5 6400MHz CL32 SSDs: 2TB WD_BLACK SN850 (OS), 4TB WD_BLACK SN850X (Games) Keyboards: Wooting 60HE, Logitech G915 TKL Mice: Razer Viper Mini SE, Razer Viper 8kHz Sound: Creative Sound Blaster Katana V2 (speakers/amp/DAC), AFUL Performer 8 (IEMs)

User avatar
sharknice
Posts: 295
Joined: 23 Dec 2013, 17:16
Location: Minnesota
Contact:

Re: [Mouse Mod] Got the gear, how to best use it?

Post by sharknice » 30 Aug 2017, 09:13

It seems like reviewing the videos could be automated pretty easily. I wonder if there is any free software out there to do it. If there isn't it doesn't seem like it would be too hard to make.

Post Reply