r/programming • • Nov 19 '10

Yet Another Kinect Hack

http://vimeo.com/16985224
662 Upvotes

253 comments sorted by

View all comments

51

u/BariumEnema Nov 19 '10

It would be more cool if it was more responsive. Is the lag kinect related or processing hardware related?

9

u/johnflux Nov 19 '10

iirc, the kinect has a 500ms lag, whereas the lag in the video appeared to be over 1000ms. So there quite a bit of optimization that could be done.

32

u/monstermunch Nov 19 '10

iirc, the kinect has a 500ms lag,

Ouch, is that lag for all output from the kinect device? Input lag of about ~100ms if noticeable and annoying for most games. It just seems like a massive deficiency for a game device.

11

u/johnflux Nov 19 '10

I'm not too sure - I think the 500ms included the x-box image processing, but I only assumed that because 500ms seemed really high.

But yeah, anything over 300ms is considered unacceptable. Below 300ms it can be noticable, but people don't mind it too much.

4

u/id000001 Nov 19 '10

As a fighting game player, the so call "1 frame link" are very common in game like Street Fighter. Which make any lag more then 16 ms very noticeable and potentially hindering.

PS: The wired joypad on xbox have a roughly 6 ms lag, PS3 roughly have a 7ms lag. Wireless one does not actually add any significant lag.

1

u/[deleted] Nov 20 '10

As a fighting game player, the so call "1 frame link" are very common in game like Street Fighter. Which make any lag more then 16 ms very noticeable and potentially hindering.

I'm sorry id000001, but only FPS and RTS require skill, as you play them with a mouse and a keyboard.

→ More replies (1)

1

u/[deleted] Nov 20 '10

What's the lag on the wii controllers?

3

u/rukubites Nov 19 '10

Clearly you haven't played FPS shooters, or fighting games. Even good RTS players are affected by this amount of lag.

7

u/shoombabi Nov 19 '10

As a DDR and Rock Band enthusiast, I have to disagree with not minding too much. My threshold on lag is about 25ms, and even at that point I get fidgety. I was incredibly impressed by the ambition of this project (that it's becoming a quick reality that we can do all this cool stuff), but the lag practically puts me into seizure mode.

0

u/[deleted] Nov 19 '10

[deleted]

20

u/killerstorm Nov 19 '10

Here's youtube video of a guy who plays 26 notes per second on guitar. That is 38 ms per note!

Even lame guitar players can play 8 notes per second which is 125 ms per note.

150 ms you mention is a reaction time -- full time spend from noticing a singal to performing action.

But it doesn't mean that you percieve everything on 150 ms resolution you cave much faster temporal resolution.

E.g. do you hear individual notes when that dude is playing? 25 ms would be like a half of note off.

So it is possible to see a lag of 25 ms. Of course, you can still do that many notes per second with that lag, but not hearing stuff instantly as you play it would be kind of weird.

8

u/Wo1ke Nov 19 '10

This isn't precisely what you're talking about but pretty related.

Last year, I read a really cool study about brain lag. I can't find the exact study, unfortunately, but if I recall correctly, it concluded that our brains had about ~100ms lag tolerance. The way they tested it was to flash and image and make a noise, and then offset the noise from the image until it became noticeable to the subject. They could offset the noise by about 1/10th of a second before anyone noticed it.

Unfortunately, I can't remember the exact reason for this, but the layman's reason is that one of the senses (either vision or hearing) took about 100ms to process, so our brains provide a 100ms window for them.

That's also why you don't notice a discrepancy between the sound and movement of lips of people speaking.

I hope someone on reddit knows the exact study and links to it. I want to read it again.

2

u/mernen Nov 20 '10

I don't know what the study is, but I do remember reading about it. As I recall, vision processing is far more complex than aural processing, so most of the time your brain will finish comprehending the sounds first, even though light travels faster.

2

u/[deleted] Nov 20 '10

Here's youtube video of a guy who plays 26 notes per second on guitar. That is 38 ms per note!

That has absolutely nothing to do with reaction time.

→ More replies (4)

0

u/[deleted] Nov 19 '10

[deleted]

4

u/trelf Nov 19 '10

I read that as 3,366,100 ms ping

3

u/[deleted] Nov 20 '10

A 56-minute ping time? Wonder if he's using SFSS or IP/AC

7

u/jonbro Nov 19 '10

you can notice it if you are a musician. even if you are not 25ms is well within the "this note isn't timed right" threshold.

2

u/dontnation Nov 20 '10

i wonder how much of that is due to expectation though. you are waiting for the note rather than responding to it. Could be why you can sometimes introduce things like syncopated swing triplets that sound a little off rhythm until the second bar.

2

u/Boko_ Nov 20 '10

I personally don't give a fuck about my latency (in online games) if it's anywhere around 120 - 160.. it's only noticeable to me when it goes above 320 ish. Anywhere from 50 - 160ms is easy enough to adapt to, if you believe you require a maximum of 25ms in order to play a game well, you just suck at it.

I see it being quite a bit more of a problem for a device which responds to your movements because you expect it to do what you do instantly.

3

u/frenchtoaster Nov 20 '10

Online games use tricks to hide the latency from you, so while the actual data latency is that the amount that you are actually experiencing is much lower.

For example, when you press forward the game locally shows you move forward immediately even though the server doesnt know you moved until half your ping later. When you shoot in FPS it detects what you would hit on your screen not at your latency time later. It is completely different than what is being discussed now.

→ More replies (4)

1

u/alchemeron Nov 19 '10

The 25ms is on top of the lag inherent to the television. So when we're talking a tenth of a second or greater and the things you're doing aren't synchronized with the things you're seeing -- when the timing isn't right -- it is very noticeable and irksome.

1

u/shoombabi Nov 19 '10

Most of the others hit the nail on the head with explaining it, but in case you wanted to hear back from me, I am in no way saying that my immediate response time is in the 25ms frame. I'm saying that in processing notes coming from ahead, you have almost a full second even on very fast song charts to fully "process" what's happening and react appropriately, but when the auditory and visual cues don't match up after I have hit the appropriate step/note/instrument with impeccable timing, it's incredibly noticeable.

→ More replies (3)

1

u/tomlu709 Nov 20 '10

True, although lag requirements for playing music and playing (non-music) games are very different.

→ More replies (1)

2

u/[deleted] Nov 19 '10

Below 300ms it can be noticable, but people don't mind it too much.

We do mind. This is one of the big reasons I didn't get a Wii.

2

u/Jigsus Nov 19 '10

The kinect has a 30ms lag last time I looked.

→ More replies (4)