How to Measure HDMI Audio Input Lag Using a Wii U

May 12th, 2021
Using a Nintendo Wii U to measure HDMI audio delay / audio input lag
Using a Nintendo Wii U to measure HDMI audio delay / audio input lag

Over the past few years it has become easier to find resources that report video input lag. But I have yet to find a good resource for audio delay introduced by receivers, TVs, sound bars, or other HDMI audio DACs. This article outlines a method of testing audio delay (audio input lag) that I have found to be surprisingly precise and easy.

Before I developed this method, I had used the Xbox 360 Rock Band Wireless Fender Stratocaster. Because of the Xbox 360’s HDMI and analog RCA output, I was able to confirm the precision of this tool by testing it on an old CRT TV which is known to have virtually zero video and audio delay. I compared the Xbox 360 version to the Xbox One Rock Band 4, but found that the Xbox One version added around 80ms to its reported video and audio delay. It is worth noting that the audio latency reported by these tools does not seem to be extremely consistent. I found I would get results that would vary by 5 or 10 milliseconds with Rock Band 4. It became clear that a new test method was needed that was both consistent and easy for others to reproduce.

Using an Audio Card as a Data Logger

The left and right channels of a computer audio card’s “Line In” are synchronized using a very precise clock. This makes an audio card or audio interface an ideal choice for recording and comparing the offset between two audio sources. Simply wire one source to the left channel and another source to the right channel. Here is a recording of an analog audio signal being split into two and then recorded as the left and right channel of a Line In:

It’s easy to see that there is no delay to either the left or right channels when they are given the same input signal. This precision seems like a good improvement from the inconsistencies I found when using the Rock Band Wireless Fender Stratocaster.

As my audio card I used a USB audio interface that has a separate 1/4″ audio input for each channel as well as gain knobs that let me easily get the two signals at similar levels. So long as you wire it up right, any computer’s audio input should work equally well for this sort of test.

Using the Nintendo Wii U as an Audio Signal Generator

Now that we can record two audio signals and compare them for a delay, we need a way of generating an HDMI audio signal and a lag-free analog audio signal at the same time. I was happy to find that the Nintendo Wii U actually has an option to output audio via HDMI and RCA analog concurrently.

The engineers who worked on the Wii U seem to have done a very good job of synchronizing these two audio output streams, from what I can tell. At the very least, the synchronization between the Wii U’s HDMI audio and RCA analog audio seems to be very consistent, varying by less than half of a millisecond between boot cycles, which makes it ideal for testing audio delay that is introduced by an HDMI audio DAC found in a receiver or TV. I also found the results to be consistent with those from Rock Band for Xbox 360 which I had previously confirmed to be fairly precise based on my tests with a CRT TV.


To generate an easy-to-analyze audio signal, I simply moved the Wii U game icon list onto the TV screen and used a pro controller to page back and forth between pages of games. This produced high frequency tick sounds that are easy to identify when viewing the waveform. Here is a sample of results from my tests:

BenQ ZOWIE RL2460 Headphone Port: 184/192,000 = 1.0ms
BenQ ZOWIE RL2460 Headphone Port: 184/192,000 = 1.0ms
Video Input Lag Equivalent: 1.0 + 8.3 = 9.3ms*
Sharp Roku TV 7209X Speakers: 9,678/192,000 = 50.4ms
Sharp Roku TV 7209X Speakers: 9,678/192,000 = 50.4ms
Video Input Lag Equivalent: 50.4 + 8.3 = 58.7ms*
Onkyo TX-NR585, Pure Direct, stereo HDMI signal: 2,108/192,000 = 11.0ms
Onkyo TX-NR585, Pure Direct, stereo HDMI signal: 2,108/192,000 = 11.0ms
Video Input Lag Equivalent: 11.0 + 8.3 = 19.3ms*

* 60Hz video input lag includes an additional 8.3ms to account for the average transmission time of individual pixels from the start of a frame. This value should be used when comparing audio delay to video input lag.

Test Method Limitations

It should be clear that there are some limitations to this test because the Wii U can only output up to a 1080p 60Hz video signal with either mono, stereo, or 5.1 surround sound. This means that it can not be used to test the audio delay of a packet-based 120Hz 4K HDMI 2.1 signal, for example.

Although this test method seems to be very accurate, there is question as to how precise it is. The spread of test results, including a 1.0ms delay demonstrated by the BenQ ZOWIE monitor’s headphone port, and consistency with the Xbox 360 Rock Band test suggest that these numbers are likely spot-on.

Testing Hardware

Some HDMI audio DACs may need different cables or equipment to test. For example, you will need a microphone to test speakers. Here is a picture of some of the equipment I have used:

Various cables that can be useful when measuring audio input lag
Various cables that can be useful when measuring audio input lag
Cables for testing using a basic onboard sound card's Line In
Cables for testing using a basic onboard sound card’s Line In

Won’t my 150W Receiver Speaker Output Damage my Sound Card?

If you are connecting your receiver directly to your sound card, you should make sure to use the Line In and not your Microphone input. The reason is because a typical Line In has a relatively high impedance compared to a Mic input. A higher impedance will reduce the current that flows through your sound card. While speakers are typically 6Ω or 8Ω, a sound card’s Line In is typically between 1,000Ω and 20,000Ω. This means that the current flowing through your sound card will be relatively low, even though your receiver is capable of delivering a much higher current to low impedance speakers.

Comparison of current for different impedance at the same voltage. Screenshots taken from Electric Calcs.
Comparison of current for different impedance at the same voltage. Screenshots taken from Electric Calcs.

The volume of the receiver directly controls the voltage output to your speakers and attaching a high voltage to your sound card could damage your sound card. The volume of your receiver should be set low and slowly increased until it matches the line output of the Wii U. All receivers should be able to operate in very low voltage ranges, much lower than the line-level voltage that your sound card is expecting. Only when the volume is set high will it begin to exceed line-level voltage.

I will be honest that I do not fully grasp the breadth of issues that mixing grounds and ground offsets can cause. If you want to be extra safe, you can always use a passive microphone held to a speaker or a ground loop isolator on your device’s output before mixing it with the Wii U’s ground.

Notes for Testing Receivers

Receivers have a lot of settings and each of these settings can impact audio delay. Here are some notes you should keep in mind when testing audio delay / audio input lag of a receiver:

  • Receivers can often have drastically different delay based on the input signal. It’s a good idea to test different input signals such as 2.0 stereo and 5.1 surround over HDMI.
    • Both a Yamaha and Sony receiver that I tested had over 40ms longer audio delay when processing an HDMI stereo signal compared to an HDMI surround sound signal.
  • A receiver’s “Speaker Distance” setting affects audio delay. Speakers that are a closer distance will have a delay applied to them to make all speakers’ sounds reach the listener at the same moment. When testing, it’s important to set all of the speaker distances to be equal so no delay will be applied to any of the speakers.
    • Automatic speaker calibration such as Audyssey or Accueq will adjust speaker distances, so you should expect this to add a delay to some or all speakers.
  • Equalizers, such as those that are activated by speaker calibration like Audyssey or Accueq, may introduce an additional audio delay. The “Direct” sound mode can be used to disable equalizers.
  • When no equalizer is active, the “Direct” sound mode often does not reduce or increase audio delay for an HDMI signal but often does reduce audio delay for an analog signal. It’s a good idea to test different sound modes to see which affect delay.
    • In my initial tests, only one of six different brands had reduced audio delay in Direct mode with an HDMI signal. Conversely, four out of these six had reduced audio delay in Direct mode for an analog signal.
  • A receiver’s “auto lip sync” feature enables communication with a TV over ARC or eARC to add a delay to audio to match your TV’s video delay. Most receivers also have a manual audio delay setting for lip sync. The manual setting should be set to zero when testing and the auto lip sync setting should be turned off when testing if you have the receiver connected to a TV that may be communicating it’s auto lip sync delay.
  • Most receivers will have a different delay for an analog signal compared to an HDMI signal, so testing with an analog signal (no Wii U required) can be useful if you ever plan to plug in an analog source to your receiver.

HDMI Audio Input Lag List

Here’s a selection of the HDMI audio delay / audio input lag tests I have done to date using this Wii U testing method:


DeviceSignalSettingOutputAudio DelayVideo Input Lag Equivalent*
BenQ ZOWIE RL24601080p 60Hz 2.0 StereoN/AHeadphones1.0ms9.3ms
LG 27UD59P1080p 60Hz 2.0 StereoN/AHeadphones1.3ms9.6ms


DeviceSignalSettingOutputAudio DelayVideo Input Lag Equivalent*
Sharp Roku TV 7209X1080p 60Hz 2.0 StereoGame ModeSpeakers50.4ms58.7ms
Sony Bravia X800H1080p 60Hz 2.0 StereoGameSpeakers96.2ms104.5ms
Sony Bravia X800H1080p 60Hz 2.0 StereoGameHeadphones68.1ms76.4ms
Sony Bravia X800H + MYPIN Audio Converter PC0003231080p 60Hz 2.0 StereoGameOptical + RCA69.2ms77.5ms
Sony Bravia X800H + SHARC eARC Audio Converter1080p 60Hz 2.0 StereoGame w/ ARC PCMARC + RCA68.6ms76.9ms


DeviceSignalSettingOutputAudio DelayVideo Input Lag Equivalent*
Marantz NR1711 (2020)1080p 60Hz 2.0 StereoPure DirectSpeakers6.0ms14.3ms
Marantz NR1711 (2020)1080p 60Hz 5.1 SurroundPure DirectSpeakers6.3ms14.6ms
Onkyo TX-NR585 (2018)1080p 60Hz 2.0 StereoGame DirectSpeakers11.0ms19.3ms
Onkyo TX-NR585 (2018)1080p 60Hz 5.1 SurroundGame DirectSpeakers10.6ms18.9ms
Pioneer VSX-933 (2018)1080p 60Hz 2.0 StereoPure DirectSpeakers11.0ms19.3ms
Pioneer VSX-933 (2018)1080p 60Hz 2.0 StereoStereoSpeakers16.2ms24.5ms
Pioneer VSX-933 (2018)1080p 60Hz 5.1 SurroundPure DirectSpeakers10.5ms18.8ms
Pioneer VSX-933 (2018)1080p 60Hz 5.1 SurroundPCMSpeakers15.5ms23.8ms
Denon AVR-S650H (2019)1080p 60Hz 2.0 StereoDirectSpeakers19.1ms27.4ms
Denon AVR-S650H (2019)1080p 60Hz 5.1 SurroundDirectSpeakers19.0ms27.3ms
Sony STR-DH540 (2013)1080p 60Hz 2.0 StereoPure DirectSpeakers56.5ms64.8ms
Sony STR-DH540 (2013)1080p 60Hz 5.1 SurroundPure DirectSpeakers13.1ms21.4ms
Yamaha RX-V4A (2020)1080p 60Hz 2.0 StereoPure DirectSpeakers67.9ms76.2ms
Yamaha RX-V4A (2020)1080p 60Hz 5.1 SurroundPure DirectSpeakers17.7ms26.0ms

HDMI Audio Extractors

DeviceSignalSettingOutputAudio DelayVideo Input Lag Equivalent*
OREI HDA-912 HDMI Audio Extractor 18G1080p 60Hz 2.0 StereoAnyHeadphones18.5ms26.8ms
Almencla 5.1CH HDMI Audio Extractor1080p 60Hz 5.1 Surround5.1CHRCA70.5ms78.8ms

* 60Hz video input lag includes an additional 8.3ms to account for the average transmission time of individual pixels from the start of a frame. This rightmost column should be used when comparing audio delay to video input lag.

Complete Test Result Details

A complete list of all of the audio latency tests I have done can be found in this google sheet. This sheet includes exhaustive testing on the receivers mentioned in the above tables. Feel free to make a copy so you can sort and filter!

Why are there no TVs or monitors that have 0ms input lag?

November 12th, 2020

The following history is based on an email discussion I had with a display review author back in 2013 that I thought would be valuable to share:

Input lag is commonly understood as the delay between the moment a video signal is transmitted and when that video signal is displayed on a TV or monitor. Back in the days of CRT displays, this would be less than a millisecond. But when looking at input lag measurements, one finds that no modern TVs or monitors have an input lag of less than 8ms when running at 60Hz. So why is this?

The reason dates back to decisions made in 2012 or 2013 regarding how to interpret the results from the Leo Bodar 1080p 60Hz Input Lag Tester. This testing device would measure the time between the start of a frame of video and the time that it was displayed on the screen, at three different points on the screen:

Image of the Leo Bodnar Input Lag Tester from the Leo Bodnar online store page
Image of the Leo Bodnar Input Lag Tester from the Leo Bodnar online store page

The results would be different based on which point of the screen the device was held to. Here’s an example of what you would see on a display that has zero video delay and instant response time, like what a CRT would have:

  • Top of screen: 0ms
  • Middle of screen: 8ms
  • Bottom of screen: 16ms

This makes sense because it takes 16.67ms to transmit a video frame at 60Hz. So the 8ms and 16ms readings are showing the transmission time of a frame of video rather than the video delay of the TV/monitor.

Initially, “input lag” results from this device were reported using a measurement at the bottom of the screen. This would include the video delay of the TV/monitor plus the full 16ms of a 60Hz frame transmission time. Unfortunately, it seemed that this input lag testing device would show confusing results with some displays, where the bottom reading would be less than the top reading. It’s possible that these displays would buffer an entire video frame and then present it bottom to top, rather than top to bottom. Or, this could have been an error in the testing device. Either way, it seemed like there wasn’t a way to simply report the measurement at a single point on the screen.

To address the issue that some displays were giving these abnormal results from the Leo Bodnar Input Lag Tester, a number of review sites decided to report input lag as follows:

Input lag = (average video delay at the top, middle, and bottom of the screen) + (average frame transmission time at the top, middle, and bottom of the screen)

This reporting method has the benefit of accounting for displays that might present a frame of video with a different delay for different points on the screen rather than presenting each pixel immediately as they are transmitted to the display. A primary example of when this happens in practice is Black Frame Insertion, where pixels at the top of the screen are delayed more than pixels at the bottom of the screen. Unfortunately, this approach has the downside of including the frame transmission time in the input lag measurement.

It is worth noting that there are very few displays that present from bottom to top. I am personally unaware of any that have this sort of behaviour. This leads me to believe that the errors in the testing device might have been the primary reason for results to be smaller at the bottom of the screen than at the top of the screen. If you are aware of any TVs or monitors that present this way, please let me know so I can amend this comment!

Determining Video Delay without Frame Transmission Time

So long as your video signal does not make use of Quick Frame Transport [QFT] and is not operating in Variable Refresh Rate [VRR] mode, the average frame transmission time across the screen that is included in input lag measurements is a constant value based on the refresh rate of the video signal. This means it can be easily subtracted from an input lag measurement to determine the “pure” video delay of the display.

Refresh RateFrame Transmission TimeAverage Frame Transmission Time Across the Screen

Here’s a chart that shows how to calculate the average video delay from an “input lag” measurement, without including this transmission time. Again, this only works if your video signal does not use QFT or VRR:

Refresh RateAverage Video Delay
30Hzsubtract 16.7ms from “input lag”
60Hzsubtract 8.3ms from “input lag”
120Hzsubtract 4.2ms from “input lag”
144Hzsubtract 3.5ms from “input lag”
240Hzsubtract 2.1ms from “input lag”

Using this final chart, we can discover that there are many modern LCD/OLED TVs and monitors that have close to 0ms of video delay, just like the old CRT monitors of the past!

Quirks and Limitations of the PreSonus Studio 26c

April 28th, 2020

Today I got a new oscilloscope! This new scope has a DC-coupled z-input that modulates the electron beam intensity and can be used for blanking (turning off the electron beam while it moves between shapes that it’s drawing).

When I hooked it up, I started to notice some strange quirks and limitations to my PreSonus Studio 26c audio DAC that I am using to drive the XY display mode of my oscilloscope: It seems that some of the audio outputs on this audio interface behave very differently than other outputs!

First off, I noticed that output channels 1 & 2, although they have the benefit of being adjustable by the volume knob on the front of the device and can have mic inputs live-mixed into their output, they are much noisier than output from channels 2 & 3:

(Click on the image to see the full sized image)

The second thing I noticed was that there is actually a delay on channels 3 & 4 compared to 1 & 2! I haven’t calculated how much of a delay yet, but judging from the image, I would guess it’s around 20 samples at 192 kHz, or 0.1ms. This is obviously a big deal when trying to use them in tandem:

I intend to use 3 channels of this PreSonus DAC: two for X/Y control and 1 for blanking (brightness/intensity). This delay obviously has an impact on blanking:

You can see in this image that there are gaps in the shapes and the blanking lines are still visible because the intensity is not being modulated at the correct time due to the delay.

To address this issue, it won’t be too hard to put a software delay on the brightness output stream to line it up with the X/Y output streams.

Overshooting, Oscillations, and Blanking on a Vector Display

March 31st, 2020

Before I started work on creating a vector game engine to be used on displays like oscilloscopes, I had watched a really fantastic explanation of how to create graphics for laser displays by Seb Lee-Delisle:

In this video, Seb talked about the challenges of working with a laser that takes time to accelerate and decelerate as it moves around the screen. Draw sorting and gradually changing the laser’s position when moves between shapes are two techniques that he used when recreating Asteroids for a laser projector. When approaching my new oscilloscope project, I kept these ideas in my back pocket as solutions to problems I expected to have.

Overshooting and Oscillations

Sure enough, I did have some problems with controlling the electron beam of my oscilloscope vector display. When moving from one position to another which is very far away, the electron beam would overshoot and oscillate before finally settling into the place I wanted it to land:

For context, my current setup and game engine uses an audio DAC that is running at 192 kHz with a variable video game framerate. My current project targets 80 fps, but it could go much higher. 80 fps with 192,000 samples per second means that I can move the electron beam 2400 times per frame. If I need to move the electron beam more times per frame, that frame will take longer to draw and the framerate will drop. If it drops too low, you can start to see flickering, like an old CRT monitor running at a low refresh rate. The electron beam moves extremely quickly — faster than 192,000th of a second! So I need to gradually step along the path I am drawing. This effectively “slows down” the electron beam’s movement when drawing a shape. This means that 2400 samples per frame is not very much to work with!

Draw Sorting

Getting back to the problem of the electron beam overshooting and oscillating, I started first with the solution of draw sorting. I figured that if I could make the electron beam move in a more optimized path that it could help reduce the distance that the beam needed to travel between shapes and thus reduce the overshooting and oscillation at the start of drawing a new shape.

I implemented a very quick prototype algorithm that simply looked for the next shape that was closest to the current electron beam position every time it finished drawing a shape. This had some immediate drawbacks that I didn’t expect! Although, it’s possible this method could help with the overshooting, I found that it caused a much bigger problem: the scene started flickering and jittering as I moved the camera around!

The reason for this flicker and jitter was immediately obvious to me — the refresh rate of each shape was varying between frames! Here’s an example of a worst case scenario that would cause this problem: Let’s say, after sorting all the shapes, the draw order of objects is: [A, B, C, D, E, F, G]. But then the player moves the camera and the scene changes such that the draw order after sorting is something like [B, C, D, E, F, G, A]. While object A was drawn first in one frame, it was drawn last in the next frame. Without sorting, object A would have been drawn once every 1/80th of a second, but now it needed to wait a full 1/40th of a second before being re-drawn to the screen. This behaviour causes flicker and can make objects look like they are jittering as a camera pans across the scene.

This experiment has made it very clear that I must always draw shapes in the same order with a vector display to ensure that their refresh rate is kept somewhat constant!


Blanking is a term used to describe the time when a display will “blank” (stop drawing an image) for a short period of time while it prepares draw at a different position, usually on the opposite side of the screen. The idea of blanking is important and valuable to both raster and vector displays. With my current oscilloscope, I do not have the ability to turn off the electron beam, but I can dedicate some additional time to give the electron beam a chance to settle in its new position before starting to draw. Here’s what it looks like if I pause on the new draw position for 7 samples (7/192,000th of a second) before continuing to draw the new shape:

You can see that this definitely helps. Now each line is being fully drawn, though the initial oscillations as the beam settles on the new location can still be seen.

Exponential Deceleration During Blanking

There was one last trick that I kept in my back pocket: changing the acceleration of the the electron between points, during blanking. I fiddled with some different tween functions, and settled on a 7 frame blanking with a quadratic ease out:

Ta-da! This is now looking pretty crisp. In the future, I plan to change the number of blanking samples based on the distance between the two shapes. If it’s a small distance, there’s no point in spending a full 7 samples during this blanking time.

Oscilloscope Z-Input & Blanking

I mentioned previously that I was unable to turn the electron beam off and on while moving between shapes. This isn’t entirely true: my oscilloscope does have a “z-input” that can be used for blanking. But unfortunately, I found that it is AC-coupled. This means that the z-input is only able to detect changes in voltage, rather than read the DC voltage directly like my x and y-inputs. My game engine has actually supported changing the brightness of samples through a “z-input” and a third audio channel since the beginning, but I will need to get a new oscilloscope with a DC-coupled z-input that I can use for full-featured blanking.

Further Progress

My vector game engine’s source code is available on Github under the MIT license. It’s pretty rough and I intend to use it primarily for my own experiments, but you’re welcome to peek around and check out the progress. I plan to continue to post here from time to time with updates, but for the latest news on the project, check out my Twitter feed.

Making a Vector Game Engine with an Oscilloscope

March 10th, 2020

A couple of weeks ago I started work on a new video game engine for vector displays. For a long time I have been enamoured by the uniquely high contrast of vector displays. A local bar named House of Targ hosted an original Asteroids arcade cabinet that only could be appreciated in-person: the super bright effect of the weapon shots was something that couldn’t be reproduced on any type of display.

Later I was introduced to Oscilloscope Music and where I discovered how easy it was to control a vector display using an audio signal. The creator of this music also produced a series of tutorials that described the audio equipment needed. This allowed me to get up and running very quickly with my own vector game engine.

My vector game engine is being developed in C# with its primary output being the ASIO audio interface. I’ve started off by using a number of math and input classes from MonoGame. After less than a week of blind programming with only a debugger to show me the buffer states, I managed to create a rotating cube that displayed first try on an old oscilloscope. After another week, I’ve got to the point where I have a very basic 3D scene that you can navigate using an Xbox One controller or the Xbox Adaptive Controller. My plan is to make alternative control video games with this as my output.

I’m not the first to be doing these types of experiments. And vector display games were some of the first video games. There was even a home all-in-one console called Vectrex! Here are some links to other cool articles and projects:

…And some music-focused links:

My vector game engine’s source code is available on Github under the MIT license. It’s pretty rough and I intend to use it primarily for my own experiments, but you’re welcome to peek around and check out the progress. I plan to continue to post here from time to time with updates, but for the latest news on the project, check out my Twitter feed.