Sample C++/.NET C# codes apps are consuming too much CPU
| 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?

Thanks for your help, Appreciate it.
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!
@dorodnic Any feedback on this? Thanks.
[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.