Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6249803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:18:22+00:00 2026-05-24T13:18:22+00:00

I am writing a Kinect WPF application in C# to send gesture commands to

  • 0

I am writing a Kinect WPF application in C# to send gesture commands to aLinux C++ application.

My problem is when the Linux app’s framerate drops below the Kinect’s (25fps), it begins to register commands incredibly slow. A rotation would occur 5 or so seconds after the information was sent. From this I feel as if its emptying some queue of packets ever so slowly as they get backed up.

The framerate drops due to the increased model complexity being rendered on the Linux side.

At each rendering frame, I check if any packets were received for about 1ms through a select() and recvfrom(), then I parse it. Followed by updating the scenegraph for the world.
On the Kinect side, running at a solid 25fps is sending packets of gesture data as they are recognized.

Why is there a severe delay as the Linux FPS < Kinect FPS? It appears to be executing all the commands, just at a significant delay for a real time application.

Also, what are possibly solutions to alleviate this delay?

I think the delay is caused by the Linux’s inability to process all of the packets being sent in, so the packets get queued. However, I’m not sure why there is still a few seconds of no updates despite it technically reading 1 packet per frame.

Here is acode snippet.

(executes once for each frame)

  tv.tv_sec = 0;
  tv.tv_usec = 1*1000

      //BLOCKING 1ms  
  retval = select(sfd+1, &fds, NULL, NULL, &tv);

  if (retval < 0) {
     perror("select");
  } else if (retval) {
     int n = recvfrom(sfd, recvbuf, 1024, 0, (struct sockaddr *)&caddr, &len);
     parse_command(recvbuf);
  }

//After this it begins to update/transform the world/scene

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:18:23+00:00Added an answer on May 24, 2026 at 1:18 pm

    What are possibly solutions to alleviate this delay?

    A very simple method would be to use acknowledgement packets. Send a bunch of messages (up to a chosen threshold, for example, 1 second’s worth). As long as the acknowledgement packets are received, you will continue to send data packets about what is happening on the Kinect. If you do not receive any acknowledgements (so your Linux app is running a little behind), then you will drop data until it catches up (and you will know because of the ACK packet).

    Why is there a severe delay as the Linux FPS < Kinect FPS? It appears
    to be executing all the commands, just at a significant delay for a
    real time application.

    This has to do with the way your code and how you’re executing it. Without any information about your parse_command() function, we will not know what. Yes, you’re executing all the commands, but you are taking too long to execute them. At 25 FPS, you have 40ms before you start seeing lag. Within that time, you need to do all your work parsing, rendering and your commands.

    I think the delay is caused by the Linux’s inability to process all of
    the packets being sent in, so the packets get queued. However, I’m not
    sure why there is still a few seconds of no updates despite it
    technically reading 1 packet per frame.

    Please do not make assumptions about software (or anything in general) without doing some research and having some conclusive evidence. Linux is perfectly capable of receiving large amounts of data through a network. In fact, it is very performant and can receive gigabits of data at a time. The issue is with your client side code, not the kernel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a C# application that is using the Kinect, i am taking
Writing my first, very simple Rails application, a simple admin app to track work
here is my situation: we are writing an application that must transform Microsoft Kinect
Writing my first Android app. Thought I would start with a Corporate Directory application.
Writing my first Linq application, and I'm trying to find the best way to
Writing a test app to emulate PIO lines, I have a very simple Python/Tk
Writing a .NET DLL how do I find Application.ProductName ? EDIT: Obviously, importing Windows.Forms
Writing a simple example from Odersky's book resulted in the following problem: // AbstractElement.scala
Writing my first JQTouch app. When I go from #login to #home , a
Writing an app that will include the ability to decompress zip and rar files.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.