I suspect I could make more money as a 'pure' software developer, but it would not be a factor of 2. And I'm doing what I love and largely choosing my own research direction. It needs to have an ultimate business application, but finding that alignment is not particularly difficult.
As with many scientists, having the resources I need to accomplish my research is often the stickier point. I have money for a few coops to do more speculative research, and annual equipment (I need clusters to do what I do). I don't have trouble getting funding for 2-3 conferences each year, which is all I need (more is a distraction, IMO). I'm hoping to start building out my group in a few years.
And I can do largely autonomous research work, very much like what I did as a researcher in academia. Arguably I am even more autonomous here, as I do not have a research adviser/boss.