jawaff / KinectController

Control your computer using your body. The KinectController turns the Kinect into a controller that allows configurable actions to be emulated when configurable gestures are triggered by the user.
0 stars 0 forks source link

There is an issue with the debug window regarding its update speed. #14

Closed jawaff closed 8 years ago

jawaff commented 8 years ago

The debug window isn't being updated very quickly at all. It was working just fine when I was using the example code from the NiteTest project (which is in a separate repository.) I changed the example quite a bit and while the Kinect data is being fed to Esper, the frame rate for the debug window is so slow.

jawaff commented 8 years ago

I think I'm going to remedy this problem by making the debug window a standard feature in the project. Except, when debug mode is selected, a console window should be displayed along with the debug window for the Kinect camera. This console window would be basically for logging events that have happened in real time. It'd also be nice to have a frame rate and Kinect update rate displayed in the window.

jawaff commented 8 years ago

Moving the addition of a console window into a new issue (Issue#15.)

jawaff commented 8 years ago

I added some code to the program that will calculate the fps and the kinect updates per second. It looks like the fps of the GUI is around 14 fps, while the update rate of the kinect is around 40 updates a second. I think this is because repaint() is being called for the KinectDebugWindow at each of the Kinect update times. Since there's some overhead for executing the paint, the fps will surely be less than the update rate of the kinect.

jawaff commented 8 years ago

For some reason the fps and the kinect update rate are both around 15 updates/frames per second. I'm not sure what I did to sync them up, but everything seems to be running smoothly now.

jawaff commented 8 years ago

The fps and kinect update rate went back to being out of sync. I'm not sure what's up with this. We may not even need to fix it, because the debug window seems to work alright and it's not even necessary for the program really.