English Amiga Board Amiga Lore


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 01 March 2016, 19:52   #1
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,481
Measuring/comparing display latency or reaction time

[This isn't specific to WinUAE since it could be useful on real hardware too.]

Has anyone written an Amiga program to compare video output latency? For example, the program could flash the screen white at semi-random intervals, and time how long the user takes to click the mouse button on seeing each flash.

The idea would be that, after averaging the results of several/many flashes, you could arrive at some measurement of display latency. Well, actually also the user's reaction time and input latency plus display latency.

For real hardware that could allow the user to get some idea of how the "game mode" or other settings of their LCD TV might affect latency. For WinUAE the user could experiment with different display options (buffering, D3D/DirectDraw). And maybe how different input devices could vary in latency (PS/2 keyboard vs USB?). Choosing the lowest-latency options could help in games like Pinball Dreams etc.

Perhaps there already exists some reaction-time-testing program or game???


Slightly related, a Google search brought up a 1986 article "Amiga 1000 hardware timing and reaction-time key interfacing" from the journal Behavior Research Methods. (PDF download link on that page.)

Edit 2: There's a reaction time tester program R²Z - Reiz-Reaktion-Zeit. Not sure how ideal that is, but it's a start. To minimise variation/latency, an ideal reaction time tester would probably kill the OS then poll for joystick/mouse button presses in a tight loop. Is polling joystick directions (via JOY0DAT/JOY1DAT) faster than fire buttons (via CIAAPRA)?

Last edited by mark_k; 01 March 2016 at 21:18.
mark_k is offline  
AdSense AdSense  
Old 02 March 2016, 15:39   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,543
Quote:
Originally Posted by mark_k View Post
Is polling joystick directions (via JOY0DAT/JOY1DAT) faster than fire buttons (via CIAAPRA)?
If there is any difference (mouse/joystick data being multiplexed and also serial in AGA), it still will be less than single scanline. CIA access is practically instant.

Second/third firebutton is slower than first button due to POT capacitors, still only max 20-30us.
Toni Wilen is online now  
Old 02 March 2016, 16:15   #3
r.cade
Registered User
r.cade's Avatar
 
Join Date: Aug 2006
Location: Augusta, Georgia, USA
Posts: 280
Send a message via AIM to r.cade Send a message via MSN to r.cade Send a message via Yahoo to r.cade
I think human response is much slower than the delay introduced from emulation or display lag. You would never be able to measure it very accurately like that.
r.cade is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADFs - renaming / comparing / finding out if you have anything rare!!! DamienD project.TOSEC (amiga only) 73 01 June 2017 20:30
Comparing SysInfo results with x86 platform? codeflash Hardware mods 2 16 June 2013 00:50
Measuring speed with pixels Lonewolf10 Coders. General 19 18 November 2011 09:31
WinUAE 0.8.17-Comparing the releases. Paul Amiga scene 50 30 October 2001 01:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:48.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.10386 seconds with 11 queries