Hi,
I am running my application through VTune to try to find performance bottlenecks. Most of the things it points out seem logical to me, but a certain scenario looks very weird. I attached a picture showing what I mean:
I hope the image shows all you need, but please ask for more info if you need it.
My question is regarding the highlighted row. How can incrementing a float value accessed through a reference take that long? Is there something fundamentally stupid about the code above, performance-wise, that would cause the highlighted row to take that long? And if so, what should I do to make it faster? Or, are the profiling results perhaps somehow incorrect?
The build I am running is a release build with "normal" VS settings and debug symbols. Ie. I have not adjusted anything in particular that would come to mind.
Any help you can give me is greatly appreciated. Cheers!