librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Sample C++/.NET C# codes apps are consuming too much CPU

Open michaelchi08 opened this issue 8 years ago • 3 comments

Required Info
Camera Model D435
Firmware Version 05.09.02.00
Operating System & Version Win10
Platform PC
SDK Version 2.10.1

Issue Description

The sample codes provided are under the samples folder are using too much CPU. I also tried the .NET solutions and they seem to be doing the same thing. When i use the installed realsense viewer, it's fine. Am i doing something wrong compiling these projects?

image

Thanks for your help, Appreciate it.

michaelchi08 avatar Apr 05 '18 18:04 michaelchi08

I am having the same issue. The problem seems to be the Color Format of the ColorStream. Setting the desired format to Format.Yuyv resolves the problem, even at 1920x1080 and 30FPS (max at this resolution). So maybe some very inefficent color format conversion at work? A fix would be great!

bastiankayser avatar Apr 10 '18 12:04 bastiankayser

@dorodnic Any feedback on this? Thanks.

michaelchi08 avatar Apr 12 '18 04:04 michaelchi08

[Realsense Customer Engineering Team Comment] @michaelchi08 Please check if you compile with OpenMP flag enabled, if so, please disable it. You can refer to the issue https://github.com/IntelRealSense/librealsense/issues/744 to get more information.