问题描述
当我从SDK浏览器运行示例应用程序时,为什么C ++版本的Color Basics和C#WPF版本之间的速度有这么大差异?
When I run the sample apps from the SDK browser, why is there such a difference in speed between the C++ version of Color Basics and the C# WPF version?
是它归结为:
1。 C ++和C#之间的速度差异
1. the differences in speed between C++ and C#
2。使用Direct2D与WPF
2. the use of Direct2D vs. WPF
3。其他一些因素。
如果我只运行C#/ WPF样本,那么kinect行为真的很慢;帧速率降至零,kinect似乎断开连接。有趣的是,如果我同时同时运行C ++和C#版本,它们都具有相同的帧速率
我只能运行C ++ / D2D。
If I run just the C#/WPF sample, the kinect acts really slow; the frame rate drops to zero and the kinect appears to disconnect. Interestingly, if I run both the C++ and C# versions at the same time side by side, they both have the same frame rate I can get by running just the C++/D2D.
如果我在C#/ WPF样本的同时运行Kinect Studio,则样本的帧速率也不错。如果我在C#/ WPF样本的同时运行Kinect配置验证程序,则样本帧速率会下降并且kinect会发生影响。
If I run Kinect Studio at the same time as the C#/WPF sample, the sample also has a decent frame rate. If I run the Kinect Configuration Verifier at the same time as the C#/WPF sample, the sample frame rate drops and the kinect diskinects.
是否有其他人注意到这一点,或者有任何建议?
Has anyone else noticed this, or have any suggestions?
推荐答案
这篇关于样本加速C ++ vs C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!