I am trying to speed up a very slow SDL2 application on Linux. I want to use oprofile to see where the problem areas are. When running under oprofile, with no changes, it runs 80-100x faster than usual. The fast oprofile and slow non-oprofile behavior is fully repeatable and consistent.
- What can cause such a massive speed-up by running under oprofile?
- If the application runs so well under oprofile, how can I find the
problem areas for when it’s not running under oprofile?
I’m using Ubuntu Linux 22.04 and the latest release of SDL 2.
0