I know that in best conditions game companies earn less than other software companies and their profit is less than software companies.
for example, if we compare the highest level, Amazon company earns much more than Riot Games and also Amazon technical challenges are less than a high tech game company like Riot or Naughty Dog. also skill sets and pipelines are more well defined in other software development areas like backend or android.
to be more accurate, as I searched the internet, a game developer in a great AAA Game Dev Company in Europe earns about 50-60k/year while a backend developer in a regular company the same city earns more than 80k/year and working in a big service software company makes you earn more 140k/year in the same city.
is it the whole story? game developers work on bigger challenges and in harder conditions and earn much less because they love making video games? is there any exceptions to the story?