<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by exA-Arcadia on Medium]]></title>
        <description><![CDATA[Stories by exA-Arcadia on Medium]]></description>
        <link>https://medium.com/@exaarcadia?source=rss-82aff44cf587------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6QGSeFc_xjNQJPCkIo4PJg.png</url>
            <title>Stories by exA-Arcadia on Medium</title>
            <link>https://medium.com/@exaarcadia?source=rss-82aff44cf587------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:52:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@exaarcadia/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[exA-Arcadia | RE: Input Lag]]></title>
            <link>https://medium.com/@exaarcadia/exa-arcadia-re-input-lag-44b1ced8da06?source=rss-82aff44cf587------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b1ced8da06</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[arcade-games]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[video-games-industry]]></category>
            <category><![CDATA[exa-arcadia]]></category>
            <dc:creator><![CDATA[exA-Arcadia]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 16:41:12 GMT</pubDate>
            <atom:updated>2026-03-16T17:23:42.244Z</atom:updated>
            <content:encoded><![CDATA[<h3>RE: Input Lag</h3><figure><img alt="exA-Arcadia — Games you want to play" src="https://cdn-images-1.medium.com/max/1024/1*F_8RSWbFBnSbBNZzVje3pA.png" /><figcaption>by exA-Arcadia TEAM EXA</figcaption></figure><h3>What is Input Lag?</h3><p>Input lag is the term we use to describe the time a game takes to process inputs and display the updated game state to the player. This latency can come from a number of sources, including the display (monitor), controller, the game hardware, and software. The underlying system software, input sources, and the game itself further complicate the chain.</p><p>Some of these sources fall under the responsibility of the game developer, where understanding the software environment and minimizing latency as much as possible is important. Unfortunately, other sources — like the display — are generally out of control of the developer entirely, and at best the customer is poised to minimize display lag if they are knowledgeable on the topic.</p><p>With potentially unavoidable sources of lag present, it makes the developer’s efforts to avoid contributing additional latency all the more important. While a game might generally feel alright at 2–3 frames of latency, it will feel worse or become substantially harder if the rest of the chain drags it down to 4+ frames.</p><h3>How does Input Lag impact your gaming?</h3><p>While input lag may not be consciously noticeable to a player — or even a developer — it is a nebulous source of artificial difficulty, and takes away from the general feeling of responsiveness. It’s not just about being able to react immediately; sluggish inputs even make navigating a pre-determined path more difficult. This last point cannot be stressed enough! Some games feature “frame-perfect” inputs for particularly challenging techniques, but that doesn’t mean that it’s about reflexively responding to stimulus.</p><p>Overall, the theme present across any genre is that input lag is a handicap thrust upon the player, and unlike traditional difficulty settings in games, this one is not obvious to the player at middling levels, even though it can still have a great effect. Let’s form some specific examples across a few genres.</p><h3>Rhythm Games</h3><p>As a broad generalization, many rhythm games involve incoming input events (notes) that the player needs to respond to with an accurate and fixed timing (generally, in rhythm with the beat). Players aiming to chain a combo of uninterrupted hits will have a harder time if they need to adjust for an offset, especially if aiming for fully perfect play. Some games include an offset adjustment for the timing judgement as a way to counteract the lag of the play environment.</p><h3>Fighting Games</h3><p>Every frame of lag effectively takes away a frame from a hit confirm. If a given combo has a positive recovery time of eight frames, but the software and play environment introduce four frames of lag, the window of time where a player can acknowledge a hit confirm and react is cut in half.</p><h3>Platform Games (Scrolling Action)</h3><p>Many 2D platform games in which the player can run and jump at some point feature areas where nimble and accurate jumping between platforms is critical. Crossing a large gap comes down to hitting the jump button right before the player goes off the edge of a platform, and quickly hopping between a number of small platforms requires getting just the right jump height and adjusting horizontal trajectory to land before jumping again right away.</p><p>If there’s input lag at play, then even just hitting jump at the right time asks the player to buffer their inputs before the visual cues would suggest it’s actually necessary. Whether or not the game should have some mechanical leeway built in (like “Coyote Time”) is a separate discussion, but even in such a case a delayed input only adds additional difficulty to the action.</p><p>For air movement, where slower acceleration is common, input lag can make the movement feel particularly sluggish, and overshooting the trajectory is a common symptom. The feeling is not unlike a car losing traction in the rain and fishtailing as it tries to navigate back to a stable center position.</p><h3>Shooting Games (Shmups)</h3><p>Despite the initial impression new players might have to shooting games, some core aspects of the gameplay can be compared to rhythm games; instead of arrows or notes coming down towards an event line, enemies and bullets form obstacles that move and converge along somewhat predictable paths. The player subconsciously calculates potential routes and re-evaluates as they move and new obstacles are introduced, while managing the focus of return fire.</p><p>The issues introduced by lag in shooting games are familiar — what was meant to be a little dodge for an incoming bullet ended with the player slipping over and colliding with another bullet instead of stopping short, or they hit the bomb button a few frames before being hit, but still died instead of experiencing the expected momentary invulnerability that would have saved them.</p><h3>Input Lag Across Past &amp; Current Platforms</h3><p>Older games from the 2000s and earlier trend towards having generally lower input lag (faster response) than a lot of games today, but rather than jump to conclusions about contemporary development practices we should observe the baseline input lag imposed by the platforms (between both the hardware and necessitated software practices).</p><p>Below are some simplified examples of input lag imposed by the design of various game platforms’ hardware; games can add their own latency through complicated input systems, game logic loops desynchronized from the video update, pipelining of logic and rendering, and even simple ordering mistakes of update logic routines.</p><h4>Line Buffer</h4><p>The majority of 80s game hardware had a <em>line buffer </em>for independently-moved “sprite” objects on the screen. The hardware imposes virtually no latency on the game, but in order to avoid unpleasant tearing artifacts the draw calls are generally prepared or transferred during the vertical blanking interval. As a result, it’s a safe generalization to say that <em>line buffer</em> <em>systems</em> impose a solid one frame of lag on the game.</p><p>Example (non-exhaustive) list of line buffer platforms with an implied base 1 frame of lag:</p><ul><li>Pac-Man</li><li>Famicom / NES</li><li>Mega Drive / Genesis</li><li>X68000</li><li>Neo-Geo</li><li>PGM</li></ul><p><em>Note: Not all games on these platforms are necessarily 1 frame of lag as the software itself may introduce additional lag.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0WgVokvFprfwMDTDTTgKAw.png" /></figure><h4>Frame Buffer (double-buffered)</h4><p>Towards the mid 80’s and through a lot of the 90’s some (but not all) platforms moved to double-buffered <em>framebuffer</em> based display systems, where dedicated hardware draws object stamps to a buffer the size of the screen. Limited by processor speed and memory bandwidth at the time, generally the display list is updated at the start of the blanking interval, and is then acted upon during the next frame’s display, finally reaching the monitor one frame after that. These systems generally impose two frames of lag on the game.</p><p><em>Note: The two frames of lag described are for the freely-moving “sprite” object draw calls. Often changes to the background tilemap layer are reflected immediately, and may be able to respond in under even 1 frame based on the timing of the processing within a frame. The sprite display is generally the main form of expression used in actual gameplay so it is used to represent the platform’s overall lag.</em></p><p>Example double-buffered framebuffer platforms and arcade games with an implied 2 frames of lag:</p><ul><li>PlayStation</li><li>Capcom CPS / CPS2</li><li>Mahou Daisakusen</li><li>DoDonPachi</li><li>CV1000</li></ul><p><em>Note: Battle Garegga’s video hardware matches the criteria for this section, but through pipelining designed to comply with the video hardware’s unusual video RAM access restrictions, it can add an extra 1–2 frames of lag on top of what the hardware strictly imposes.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U6CO1MsE8bKVLVa8Xcp80Q.png" /></figure><h3>Input Lag on Modern Platforms</h3><p>The double-buffered systems from the late 80s are not dissimilar from how video is often structured today, with off-screen buffers that are flipped to the display after rendering is complete. The complexity of the graphics being rendered and the volume and speed of memory have changed what practices are typical and expected.</p><h3>Factors of Input Lag</h3><h4>Triple Buffering</h4><p>Triple-buffering allows for the desynchronization of the game’s internal update rate from that of the display and is not unique to software and hardware of today; the XSP sprite library employed by Cho Ren Sha (X68000) even has built-in support for an extra buffer for this purpose. As not all monitors run at the same refresh rate, this decoupling is more common today than it was 20 years ago. Triple-buffering and decoupled game logic is a common default for middleware packages with which games are created.</p><h4>The Frame Queue</h4><p>In recent times, a lesser known source of input latency enabled by the volume and bandwidth of video memory is the addition of a <em>frame queue</em>. Rather than the completion of a frame of video rendering concluding by waiting to render until the buffer has been displayed, rendering can begin immediately on the next frame ahead of time. Rendered frames are stored in a queue, with a healthy count of already-rendered frames prepared to cover the gap in case the renderer should stall and run out of rendering time. Similar to the tradeoffs of other forms of buffering and pipelining, it is easier to maintain a smooth framerate with a frame queue, but the <em>depth</em> of the frame queue scales linearly with the input lag it further imposes on a game. Based on the graphical complexity of the game, this may be an acceptable tradeoff.</p><p>For better or worse, the frame queue is often implemented in the <em>video driver</em> by default. Many developers end up with the frame queue in place without even knowing about it, let alone opting in to its use. For a developer making an action title, it is strongly suggested to consider disabling or at least limiting the depth of the queue; such an option is present in middleware packages like Unity, but there are also operating system-specific methods to mitigate this queue.</p><h4>Input Methods</h4><p>Unlike old embedded platforms where inputs may be read simply through GPIO and used more or less immediately, input methods and physical interfaces vary greatly these days. There are keyboards, mice, game controllers, connected via USB, Bluetooth, or some other proprietary connection method. On top of that, inputs might be filtered and buffered by the operating system or software that intends to allow input source reassignment and remapping.</p><p>As of the mid-2000’s, arcade platforms began to use the JVS protocol for polling inputs over a serial link in the guise of a USB connector. The link speed generally imposes a wait time of 2~3 milliseconds per device in the input chain. This often meant input updates were relegated to a thread that does updates asynchronously. This is an additional source of input lag for some titles, as especially with the hardware at the time an additional penalty of almost 20% of frame time was not acceptable.</p><p>Developers should try to measure how long input update routines take, and be aware of which input devices can change the experience for the player.</p><h3>Practices Employed on the exA-Arcadia platform</h3><p>When applicable, exA-Arcadia game software employs all video display input lag mitigation options, and runs game logic in step with vertical sync.</p><p>exA-Arcadia has developed an extension of the JVS protocol called JVS’ (Dash), whereby the I/O hardware can negotiate a higher link speed for all communications. As a result, when equipped with JVS’ compatible I/O hardware, the round-trip input poll time is reduced to about 0.03 ms, making synchronous update at the start of a game loop a non-issue even for complex 3D rendered games.</p><h3>exA-Arcadia Input Lag Measurement Methodology</h3><p>The input lag test environment used by exA-Arcadia is realized by a high speed camera (240 fps) and a CRT monitor. The CRT monitor is employed because the signal path from the video signal to the electron gun’s cathodes is verifiably short and unbuffered, and the change from dark to light on the face of the tube is virtually instantaneous.</p><h3>Environment and Methodology</h3><p>Our testing environment features a small circuit board that has an array of LEDs, connected to the control panel inputs directly through a buffer. Pressing any button or direction will light up the LED immediately. Then, with a high speed camera, we collect multiple samples of performing actions on the control panel, then scrub through the data to find the point where the input begins (LED lights up) and where the action occurs (character moves/animates on screen).</p><p>When we find the input begin point, we will always scrub to the very beginning of the next scan-out, then count the frames until the frame in which the action occurs. In this way, a game where an input is made and the action occurs in the very next display frame is “0 frames”, and one that occurs a frame later is “1 frame”, and as such our measurement is “number of inactive frames”. If a game measures below 1 frame when the input was made above a certain point in the raster, we could reasonably claim that the game has 0 frames of latency; however, to avoid ambiguity, we instead refer to these titles as having “less than 1 frame” of input latency, since there are cases where it does not always respond with zero inactive frames.</p><p>This quantization of frames is appropriate as we have knowledge that the game under test reliably polls its inputs and runs logic synchronously.</p><h3>Pros</h3><p>It’s an easily created setup using simple tools, with no interference from using the machine as normal, and allows checking many different scenarios quickly and with minimal down-time. These aspects facilitate trying many different types of inputs and actions, making it easy to find whether certain actions have internal delays, and helping to avoid less valid data. As a development studio, this also helps us find whether certain parts of the games have additional input lag, and to correct the issues.</p><h3>Cons</h3><p>Inputs are made manually, meaning there is little control over where in the frame the input is made. However, because the testing occurs on a CRT monitor, we can observe this information by denoting where the raster is on the CRT monitor when the LED lights up.</p><p>Manually scrubbing video for input timings is somewhat time consuming and means creating enough test data for good readings can take quite some time. As well, because it is a camera capture of video, detecting the in-game motion on the screen can be somewhat difficult at times.</p><p>The frame rate of the camera limits the granularity of the measurements, so it is not possible to get extremely precise measurements. Despite this, as long as the Nyquist frequency of the camera’s frame rate is higher than the screen’s refresh rate, it is easy to get accurate data with our method, though we do use cameras that are even higher speed than that. Simply put, as long as the camera’s frame rate is double the screen’s refresh rate, we can get verifiable results on nearly any sample.</p><h3>Independent Input Lag Measurement and Testing</h3><p><a href="https://sites.google.com/view/noodallsinputlagtestingresults/home">Nigel Woodall (noodalls)</a> is independently testing and verifying officially published results of exA-Arcadia game titles’ input lag. He uses a different approach to exA-Arcadia in measuring input lag. This report seeks to provide datapoints with which exA-Arcadia’s internal testing data can be corroborated, and to illustrate differences in measurement methodologies.</p><h3>Environment and Methodology</h3><p>The following description was provided by noodalls and has been reproduced as-is.</p><p><em>“I take a component signal (from a HDMI → component converter) and strip away the Yr and Yb signals when a button is pressed. I use a Raspberry Pico and a PCB of my making to do this in an accurate and controlled manner. Having recorded this, I then pass it on to my input lag testing program, which will run through and find the instances where the video signal is desaturated (when the colour information is missing). I can then count from this frame and work out exactly how long a response took. This works extremely well where there is a set region of the screen (pixel) which responds the same way each time — like a command history. In the absence of this I can manually check each result, and the program is designed to make this as painless as possible.</em></p><p><em>By combining tens (hundreds/thousands) of tests, it provides useful information of input lag, spikes and patterns etc.”</em></p><h3>Pros</h3><p>This setup makes testing highly reproducible, and quick to evaluate many input window scenarios. Inputs are performed automatically which allows for great precision in testing sub-frame latency or jitter. Due to the generalized nature, it can gather the exact average time that it takes an input to reach and respond in the game.</p><h3>Cons</h3><p>Preparation of the setup is somewhat complex and requires both non-trivial hardware and software tools to be created. Being automated makes it easy to set up and gather large quantities of data, but like any test, it’s vulnerable to the quality of data gathered, and the ease of data gathering may make it easier to overlook the quality of data.</p><h3>Results and Terminology Differences Explained</h3><p>In general, there are no significant incongruencies between our measurements. However, the differences in the way that we express our results can be a bit confusing due to various preconceptions, so some further explanation is warranted.</p><p>noodalls’ results are generalized to the point of containing information that we deem irrelevant to the specific testing at hand, such as the intrinsic addition of ~8.3 ms (or 0.5 frame) due to the average amount of time waiting for the display to scan-out at 60 Hz. Including display scan-out is useful for comparison against other monitor equipment (for example, a 240 Hz monitor with “<em>50 ms</em>” best-case input lag is going to be on average ~6 ms faster than a 60 Hz monitor with “50 ms” best-case input lag), so it makes sense for his calculations to factor this in. However, arcade games are limited by available cabinet hardware, which aside from some very recent and game-specific machines, are universally 60 Hz. Thus, we consider it reasonable to ignore scan-out time and only use best-case timing. As well, we are measuring only our game hardware, not the monitor in use, so it is not relevant to include the monitor’s performance.</p><p>However, as a result of this being a universal constant, we can actually 100% correctly convert our measurement results (frames) and noodalls’ results (milliseconds). You can convert our measurements to his with the simple formula</p><p><strong>milliseconds = (frames + 0.5 f) * 1000 ms/60 f</strong></p><p>or vice versa with</p><p><strong>frames = (milliseconds * 60 f/1000 ms) — 0.5 f</strong></p><p>It is very important to reiterate that the 0.5 f factor here is not a fudge factor, but caused by averaging inputs at every point in the frame. The only way to avoid this 0.5 f is to disable VSync and cause tearing in the display, which is unacceptable and unprofessional in appearance, or to use a higher refresh rate monitor, which is outside of our platform’s control.</p><p>Because noodalls’ results are higher precision, there are occasionally a few milliseconds of variance between the converted results. These are essentially minor variations per-game in where the sampling point of the inputs takes place in the raster, and is nearly negligible, but they are accurate. This is one of the big advantages that his methodology has; the level of precision is high enough to gather this level of specific information.</p><h3>Individual Game Title Results Summary</h3><p>The “<em>noodalls converted</em>” column contains noodalls’ results converted to our nomenclature, using the above formula</p><p><strong>frames = (milliseconds * 60 f/1000 ms) — 0.5 f</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_UYbTYRrUWEKBf95hM800A.png" /></figure><h3>Addendum: Game Action Sampling Anecdote</h3><p>When noodalls first measured <strong>DODONPACHI TRUE DEATH EXA LABEL</strong>, we were faced with a discrepancy between his measurements and our own. After a quick analysis, we found that the cause for this was the use of the game’s <strong><em>shot</em></strong> action as the feedback for the test.</p><p>This game combines two different weapon functions onto the main shot button. If the button is held, a focused laser will be fired; if tapped, a regular wide shot will be fired. However, to accomplish this dual functionality, the game must delay and filter the input from the button.</p><p>In the case of noodalls’ test rig, which always simulates button presses for a fixed 50 ms duration, the observed result is that bullets were only fired on button <strong><em>release</em></strong>, not on button <strong><em>press</em></strong>, which led to an observed time being significantly greater than the actual input latency of the game. As players are almost universally holding the main shot button or rapid shot button instead, this internal latency is rarely actually observed by players, but it presented an issue for this test that we did not catch until shortly after initial measurement.</p><p>Since the emission of the player’s bullet is on the <strong><em>release</em></strong> of the button, that is instead a better action point from which to measure. However, if we were to perform this test again, simply using player motion would resolve this issue entirely.</p><p>The GIF below illustrates our readings using the main shot button. The action points have been highlighted. As you can see, even in the case of using the main button, the single frame response time can still be determined from the <em>release</em> point of the button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*3Nqhqmd8zFBwUBUb" /></figure><p>This goes back to the earlier point about quality of data gathered; the sampling itself was accurate and there were no actual issues with it, but the measurements were based on flawed assumptions about how the game responds to inputs. Other examples of this could include an action having intentionally delayed response, such as an animation that doesn’t begin for a few frames after the command has been registered.</p><p>In general, fighting games don’t have many issues here, due to command history displays, or attacks that animate immediately, but some genres like shmups have qualities that can make this difficult, such as the player’s shots being underneath the ship, complex input filtering mechanics, the creation of player bullets being delayed, or the player constantly being attacked leading to difficulty gathering data. Therefore, beginning with a rough evaluation of possible indications of response should be seen as a necessary first step prior to fully analyzing a game.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b1ced8da06" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>