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?

32

u/[deleted] Nov 19 '10

little of both, kinect has a latency but on the video it changes a lot which is likely just flaws in their coding.

12

u/insomniac84 Nov 19 '10

Could also be the speed of their processor.

4

u/Iggyhopper Nov 19 '10

I do see a laptop so that could be contributing to the lag. That is probably what they are running the demo on.

29

u/NorFla Nov 19 '10

They are also drinking... that always adds lag.

0

u/[deleted] Nov 19 '10

[deleted]

5

u/[deleted] Nov 19 '10

slow tap

→ More replies (1)

3

u/jonbro Nov 19 '10

according to the creator, it was actually the drivers, which were running at 8-12 fps.

They have now been patched to run at 30 fps. Huzzah!

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.

→ More replies (3)

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.

→ More replies (1)
→ More replies (5)

0

u/[deleted] Nov 19 '10

[deleted]

→ More replies (3)

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.

→ More replies (1)
→ More replies (11)
→ More replies (2)
→ More replies (1)

2

u/Jigsus Nov 19 '10

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

→ More replies (4)

14

u/Timmmmbob Nov 19 '10

500 ms? Not a chance. It's probably more like 200 ms.

All it is is an infra-red camera and a dedicated image processing chip. It's going to have a latency of whatever the camera has (say 150 ms) plus less than 1 frame (30ms) for the image processing and 1 frame for people-tracking.

This version is just slow because they probably wrote it in python or something.

6

u/tits_and_skippy Nov 19 '10

You're correct. The input latency for Kinect on an Xbox 360 title (with a tick every 33 ms) is 133–198 ms. That's the input, game and TV latency. I have no idea where johnflux got a number like 500 ms, perhaps a developer with a naive implementation.

For those of you playing along a home, a controller (on the 360) gives you between 100 and 200 ms of latency, depending on the game (or rather the game's architecture).

→ More replies (1)

7

u/Andrigaar Nov 19 '10

I watched a guy play Children of Eden at ComicCon in July. The lag was easily 500ms+ and painfully noticeable.

It'll be interesting to see if it's the device itself or not since that's gonna make it frustrating to useless for the dream idea of using it like the HUD's in Minority Report.

→ More replies (1)

3

u/lol____wut Nov 19 '10

500ms? no way.

2

u/[deleted] Nov 20 '10

Not true. Very definitely not true.

→ More replies (4)
→ More replies (2)