Hi ! My friends! I am a rookie in DirectX12.Recently,I am writing a simple graphic engine.But when I run it,I found a terrible problem,which is my app has very high CPU utilization and low GPU utilization.My app just loads a sponza scene with one directional light to generate shadow.However,the cpu utilization rate is as high as 50%, while the gpu utilization rate is almost zero, resulting in only 20 frame rates.I believe that it is an unreasonable result for my hardware(CPU:I7-9700k GPU:Nvidia 3080).And I really don't know why this happens.Please help me!!!
You can find all code of my app in my gitjhub.rookiesinchina/NeoEngine: NeoEngine main files (github.com).And you can easily find render loop in main file.
I look forward to your reply! Thank you very much!