Ray Tracing [C++ & SDL2] Profiling and debugging (Episode 24)

Ray Tracing [C++ & SDL2] Profiling and debugging (Episode 24)

QuantitativeBytes

54 года назад

444 Просмотров

Ray Tracing [C++ & SDL2] Profiling and debugging (Episode 24)

This episode takes a look at how we can use a profiling tool, in this gprof, to analyse our code and find which functions are slowing it down. I also cover how to modify the code base to improve the performance and show some tips and tricks for making those changes, including a simple demonstration of how to use the gdb debugger to help find where exceptions are occurring.

As with all of my videos, I show the code that I have developed to solve the particular problems that I need to solve, with the hope that it may provide sufficient background and inspiration to allow you to go on to develop your own code if you wish to. My code may not be the most appropriate solution to the problem you are trying to solve, so I urge you to consider the problem carefully and decide for yourself on the most appropriate solution. I make every effort to ensure that my code works as it should and is free of bugs, but of course I cannot provide any guarantees. If you use my code as shown, I strongly encourage you to make sure that you test it thoroughly to ensure that it works as you need it to. If you find a bug, do please let me know in the comments!

The Github repository for this series can be found here:
https://github.com/QuantitativeBytes/qbRayTrace2

The Github repository for my linear algebra library can be found here:
https://github.com/QuantitativeBytes/qbLinAlg

#raytracing #cplusplus #rendering #pathtracing #qbray
Ссылки и html тэги не поддерживаются


Комментарии: