Jump to content

Fast On The Trigger?


gun sane

Recommended Posts

  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

this should be a downloadable executable. Doing it over the web introduces tons of latency, you are all probably in the 100 MS range and the other 100 ms is the round trip lag.

246 avg, 205 best, 309 worst.

Edited by Jonnin
Link to comment
Guest Grubbah

this should be a downloadable executable. Doing it over the web introduces tons of latency, you are all probably in the 100 MS range and the other 100 ms is the round trip lag.

246 avg, 205 best, 309 worst.

Since its a shockwave/flash app it is actually running client side so latency wont be an issue.

Link to comment
Guest Lester Weevils

A lot of the test would be hardware and somewhat OS dependent, even if you have a program written in an efficient language running on the local machine.

For one thing, on many OS and hardware the best mouse-click granularity possible will be 16.7 ms, because clicks are only polled 60 times per second. Some gamers buy "high resolution mice" and other controllers which are reputed (along with their drivers) to have as good as 1 ms resolution. I've been tempted to get some of those out of basic curiosity but never did, just read about them.

Depending on the language and the OS, you could have potential slop of several 1/60th second "ticks" between different trials. So you have both hardware slop and software slop. Well some of the hardware slop is actually "software slop" in the drivers and the way the mouse button is handled in the OS, and then there would actually be hardware slop in some of the devices.

A wired mouse will tend to do better than wireless, other things being equal. A usb-connected wireless may have different slop than a bluetooth connected wireless. And you may get different slop measurements depending on whether the wired mouse is USB or DIN or whatever. Even the slowest computers nowadays are fast enough in theory to give excellent sub-millisecond resolution, even running dog-slow interpreted p-code like languages, if the timing program could run "close to the metal". You could even get pretty dang good accurate timing from a well-written Commodore 64 program, running at a 1MHz clock rate. But even the fastest multi-core modern computers will have surprising large slop on some tasks, because the program is running nowhere near "close to the metal".

This topic is one of the rare things I actually know anything about, having written many real-time music programs that have to depend on timed user input from keys, mice, etc. It is difficult to write a program with tight timing, that will deliver tight timing on just about any computer and any assortment of peripherals. Maybe one of the cheapest off-the shelf ways to get good confidence of measuring 1 ms latency, or worst case no more than 10 ms latency, would be with MIDI or audio interfaces. You could get pretty good timing if writing the code to measure timing intervals of a user tapping a key on a midi musical instrument. Or configure some kind of audio test where the program records audio coming from something like a ham radio code key and practice oscillator. Audio and MIDI are configured hardware and drivers to be closer to real-time. Or it would be easy enough to make a specialized low-latency test button hardware for this task. Simple hardware and software, just made specially for low latency.

You even have POTENTIAL for significant slop from the output stimulus, when the screen changes color. Depending on OS and video hardware, there can be surprising slop between when the program tells the screen to re-draw, and when the screen actually responds.

Edited by Lester Weevils
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

TRADING POST NOTICE

Before engaging in any transaction of goods or services on TGO, all parties involved must know and follow the local, state and Federal laws regarding those transactions.

TGO makes no claims, guarantees or assurances regarding any such transactions.

THE FINE PRINT

Tennessee Gun Owners (TNGunOwners.com) is the premier Community and Discussion Forum for gun owners, firearm enthusiasts, sportsmen and Second Amendment proponents in the state of Tennessee and surrounding region.

TNGunOwners.com (TGO) is a presentation of Enthusiast Productions. The TGO state flag logo and the TGO tri-hole "icon" logo are trademarks of Tennessee Gun Owners. The TGO logos and all content presented on this site may not be reproduced in any form without express written permission. The opinions expressed on TGO are those of their authors and do not necessarily reflect those of the site's owners or staff.

TNGunOwners.com (TGO) is not a lobbying organization and has no affiliation with any lobbying organizations.  Beware of scammers using the Tennessee Gun Owners name, purporting to be Pro-2A lobbying organizations!

×
×
  • Create New...

Important Information

By using this site, you agree to the following.
Terms of Use | Privacy Policy | Guidelines
 
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.