Cost did increased, but there is 2 huge factors that also happened, lot of development resources are saved due usage of  game engines, plus the number of games consumers increased heavily too which means more costumers.