Welcome, Guest. Please login or register.

Author Topic: PC still playing Amiga catchup  (Read 218089 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline koaftder

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 2116
    • Show only replies by koaftder
    • http://koft.net
Re: PC still playing Amiga catchup
« Reply #374 on: June 05, 2009, 10:39:57 PM »
Quote from: Karlos;509434
Thought experiment:

Suppose you took an analogue joystick and used the X/Y potentiometers to control an independent left/right output volume from a oscillator (generating a note at let say several kHz)  then fed that into your basic sound card and sampled this signal at 44.1kHz. You could then calculate the RMS intensity of each channel in frames of 441 sample chunks and use that (suitably calibrated) to represent the original X and Y potentials. 441 samples at 16-bit precision would be ample data to get a decent value for the RMS intensity of a simple tone in the kHz range.

That should be pretty damn close to 1kHz sampling of your joystick position ;)


Make sure to use single copper crystal wires, coated in platinum.

I wonder if amigaksi has ever seen what a button press looks like with an oscilloscope, or has ever had to deal with debouching. Years ago, when I first started playing around with microcontrollers, I had a simple little project I threw together, one of my first. Toggle an LED based on the state change from a pin. I'd press the button and it would randomally decide whether or not it was gonna stay lit. That drove me up the wall but I learned something. Contact switches are full of noise and ring like hell. Polling the crap out of a contact switch or tying one to an interrupt line is a waste of time. You take a sample and you move on. Even if a person could press a button 1,000 times a second, the noise floor would make it impossible to ascertain what really happened. This is one of the many reasons why people typically sample the joystick once per frame. You're not likely to have a legitimate state change in under 50ms. Sampling at higher rates just means you're picking up noise.

*edit* lol, you guys beat me to it!
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: PC still playing Amiga catchup
« Reply #375 on: June 05, 2009, 10:41:31 PM »
Quote from: bloodline;509438
:lol: amigaski has forgotten that physical switches have a maximum switch frequency... any amiga joystick will use cheap switches that will switch far bellow 1khz :)


Perhaps his joystick is built by the folks that made these ;)
int p; // A
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12113
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: PC still playing Amiga catchup
« Reply #376 on: June 05, 2009, 10:52:46 PM »
Quote from: shoggoth;509441
The funny part is that it's fairly common to poll the joysticks only once per VBL, which generally means every 20ms on the Amiga...

And polling at the frequency he mentions gives erroneous values - that actually means it's inferior to modern counterparts - which is even more funny considering the argument used in this discussion.


So in fact the Amiga hardware is inferior to the PC since it doesn't debounce the input signal hahaha :D

Offline shoggoth

  • Full Member
  • ***
  • Join Date: Dec 2004
  • Posts: 223
    • Show only replies by shoggoth
Re: PC still playing Amiga catchup
« Reply #377 on: June 05, 2009, 10:55:43 PM »
Quote from: bloodline;509445
So in fact the Amiga hardware is inferior to the PC since it doesn't debounce the input signal hahaha :D


Human reaction time is also worth taking into the equation:
http://en.wikipedia.org/wiki/Reaction_time

Reaction time from visual stimulus is actially in the 200ms range, which means polling the joystick every 20ms is more than adequate.
 

Offline GadgetMaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2177
    • Show only replies by GadgetMaster
Re: PC still playing Amiga catchup
« Reply #378 on: June 05, 2009, 11:00:21 PM »
Quote from: Karlos;509443
Perhaps his joystick is built by the folks that made these ;)

Be careful what you search for on the net these days. :nervous:


[EDIT]


I just realised this is my 2000th post no wonder I gained a rep power point. :D
« Last Edit: June 05, 2009, 11:06:17 PM by GadgetMaster »
 

Offline ElPolloDiablTopic starter

  • Hero Member
  • *****
  • Join Date: May 2009
  • Posts: 1702
    • Show only replies by ElPolloDiabl
Re: PC still playing Amiga catchup
« Reply #379 on: June 05, 2009, 11:13:07 PM »
"Reaction time from visual stimulus is actially in the 200ms range"

I wouldn't use wiki as an authorative source on everything.

Look at Tennis, Cricket and Baseball or Clay pigeons even. Or how about snipers?
Go Go Gadget Signature!
 

Offline meega

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 952
    • Show only replies by meega
Re: PC still playing Amiga catchup
« Reply #380 on: June 05, 2009, 11:28:59 PM »
Yeah... I did some reaction-time tests on a BBC micro when I was about 15 years old. These days they "red-flag" sprinters who respond to the gun in less than 0.1s, because it's counted as jumping the gun - but I was able to *average* about 0.08s, with lots of 0.04-0.06s, and that included making a decision as to which hand to use to press a key in response to a square appearing on either the left or right side of the screen. If you were less than 95% accurate on 100 tests then the whole caboodle was discarded - it assumed you were guessing.
:)
 

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show only replies by Trev
Re: PC still playing Amiga catchup
« Reply #381 on: June 05, 2009, 11:29:19 PM »
Not everyone can play tennis, cricket, and basebell or shoot targets. The world's fastest tennis serve crossed the court in 326ms. Nice. Regardless, ~200ms is the magic number, and it's what you need to shoot for to make something appear instanenous.
 

Offline koaftder

  • Hero Member
  • *****
  • Join Date: Apr 2004
  • Posts: 2116
    • Show only replies by koaftder
    • http://koft.net
Re: PC still playing Amiga catchup
« Reply #382 on: June 05, 2009, 11:34:23 PM »
Quote from: Fanscale;509449
"Reaction time from visual stimulus is actially in the 200ms range"

I wouldn't use wiki as an authorative source on everything.

Look at Tennis, Cricket and Baseball or Clay pigeons even. Or how about snipers?

They're describing a specific thing here. Mainly, waiting for a visual cue and making some kind of movement, and 200ms is about  right, according to everything I've read over the years. People can move faster, of course, but within limits, but not hanging on a stimulus event. Typing or walking up a flight of stairs for example. In games, it's easy to get trained to the point where you just automatically hit the right sequence of interface buttons to go through a level without even thinking. But how fast can you click a button or move a stick?

Try this: http://www.urban75.com/Mag/java7.html

Best I can do is 6 clicks a second. 166ms per click.
 

Offline AmigaHeretic

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 821
    • Show only replies by AmigaHeretic
Re: PC still playing Amiga catchup
« Reply #383 on: June 06, 2009, 12:14:47 AM »
Quote from: Karlos;509393
Have you seen typical driver sets for things like graphics cards these days?

Thanks to direct support for CUDA, PhysX, OpenGL1.0 - 3.0, Direct X (up to v10), Pure Video etc, the drivers for my card alone weigh in at around 100 MB, not including tweaking tools.

The linux drivers aren't much smaller.


I don't really think that has anything to do with initalisation though.  With drivers your really are getting back to HD speed and CPU speed. Besides even it took a full second to initalize the card, with the Quad core beast, blazing fast bus speeds, and HD speeds you should be able to initialize just about everything at the same time.  Aside from the fact that many people, as some have pointed our here, this is possible.   Something QNX or Amithlon, take seconds to boot and you can access the internet, hear sound, see the desktop.


For Windows, there's also the speed that "some" apps install.  Or some Windows updates.  Windows update can take minutes just to figure out what needs to be updated.   I can render huge 3D scenes in Maya in less time.  What in the world could Windows be doing in all that time?
A3000D (16mhz, 2MB Chip, 4MB Fast, SCSI (300+MB), SuperGen Genlock, Kick 3.1)
Back in my day, we didn\'t have water. We only had Oxygen and Hydrogen, and we\'d just have to shove them together.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: PC still playing Amiga catchup
« Reply #384 on: June 06, 2009, 12:18:32 AM »
Churning your hard disk, that's what. Rendering is usually a CPU/memory IO bound task. The bottlenecks there are small and a fast CPU/memory system will plough through such work.

Dependency resolution and all the nonsense that goes with it is generally a disk IO bound task. Modern hard disks have great transfer speeds but they don't seek much more quickly than they did years ago. If you are processing thousands of small files, the time is totally dominated by seeks and the like. The CPU will be twiddling it's virtual thumbs for a lot of it.

Having said that, yum and apt-get (to name just two) are significantly quicker. I think we just live in a world where windows is expected to be slow for these things.
int p; // A
 

Offline smerf

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1666
    • Show only replies by smerf
Re: PC still playing Amiga catchup
« Reply #385 on: June 06, 2009, 12:28:05 AM »
Quote from: Daedalus;509341
@DonnyEMU
Well, I've no delusions about the many weaknesses of the Amiga, but to be honest, I do like the fact that I can boot it up, do a quick Google and shut it down again before my Windows system has become responsive. That's a positive asset for me, in a real situation. Don't get me wrong, the PC is probably used more than the Amiga in my world, but it takes so long for the PC to boot that I don't really use it for looking up something quickly. Hell, fiddling about on my phone's browser is usually faster, and I don't have to go upstairs ;)

I don't like having computers turned on all the time; they generate heat and use electricity. And those hardware guys should have been able to tell you, that hibernating a computer is pretty much the same as a full shut down/start up as far as the PSU and hard drives are concerned. Sleeping might be a little less harsh on the PSU, but I'd be far more worried about the starting/stopping of the mechanical hard drives. And that's the same whether you sleep or shut down a system.


Hi,

Not only that but while your computer is sleeping the power supply keeps running and a fan in the power supply stays on pulling through air, this draw through pulls in dust, but that just brings another market to the PC world, compressed air to blow the dust out of their many heat sink fans, and air ducts.

smerf
I have no idea what your talking about, so here is a doggy with a small pancake on his head.

MorphOS is a MAC done a little better
 

Offline juan_fine

  • Newbie
  • *
  • Join Date: Jan 2007
  • Posts: 26
    • Show only replies by juan_fine
    • http://www.mousam-river.com/
Re: PC still playing Amiga catchup
« Reply #386 on: June 06, 2009, 12:52:13 AM »
Quote from: smerf;509462
Hi,

Not only that but while your computer is sleeping the power supply keeps running and a fan in the power supply stays on pulling through air, this draw through pulls in dust, but that just brings another market to the PC world, compressed air to blow the dust out of their many heat sink fans, and air ducts.

smerf


Ummm, time to wake up, it's 2009! My computer's power supply and fans power down to something like 5% or so when it sleeps. Even the pretty lights go out...
 

Offline smerf

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1666
    • Show only replies by smerf
Re: PC still playing Amiga catchup
« Reply #387 on: June 06, 2009, 01:04:36 AM »
Quote from: juan_fine;509463
Ummm, time to wake up, it's 2009! My computer's power supply and fans power down to something like 5% or so when it sleeps. Even the pretty lights go out...


Hi,

@juan_fine,

Don't really know about that but my modern day computer keeps the fan in the power supply running when it sleeps, it may slow down some but still produces enough noise to bother my wife when she is trying to sleep, so I have gotten used to turning my computer off. By the way this is a totally year old machine built to play the most modern day games at very fast frame rates, equal to maximum pc test point computer. And by the way pretty blue lights still stay on after shutdown, the only way to get rid of them is to hit the main power switch off on the power supply, and yes juan_fine, my computer does have an off switch. Don't have to wait for winblows or linux to shut it down, but this is not advised with these two OS's

smerf
I have no idea what your talking about, so here is a doggy with a small pancake on his head.

MorphOS is a MAC done a little better
 

Offline the_leander

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 3448
    • Show only replies by the_leander
    • http://www.extropia.co.uk/theleander/
Re: PC still playing Amiga catchup
« Reply #388 on: June 06, 2009, 01:29:24 AM »
Quote from: GadgetMaster;509447
Be careful what you search for on the net these days. :nervous:


[EDIT]


I just realised this is my 2000th post no wonder I gained a rep power point. :D


Gratz!

I guess this means I'm going to have to really put my back in to posting more regularly again!

:laughing:
Blessed Be,
Alan Fisher - the_leander

[SIGPIC]http://www.extropia.co.uk/theleander/[/SIGPIC]
 

Offline Hammer

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1996
  • Country: 00
    • Show only replies by Hammer
Re: PC still playing Amiga catchup
« Reply #389 from previous page: June 06, 2009, 02:26:44 AM »
Quote from: smerf;509462
Hi,

Not only that but while your computer is sleeping the power supply keeps running and a fan in the power supply stays on pulling through air, this draw through pulls in dust, but that just brings another market to the PC world, compressed air to blow the dust out of their many heat sink fans, and air ducts.

smerf


My laptop's sleep mode shuts down the fan.
Amiga 1200 PiStorm32-Emu68-RPI 4B 4GB.
Ryzen 9 7900X, DDR5-6000 64 GB, RTX 4080 16 GB PC.