Keep playing those video games. You’re helping Uncle Sam. The video game industry added nearly $5 billion to the U.S. economy in 2009, according to a study released today by the industry trade group Entertainment Software Association.

The report found that the industry’s real annual growth rate from 2005 to 2009 exceeded 10 percent, or 7 times the rate of the U.S. economy.

“Despite a challenging economic environment, the entertainment software industry continues to grow and create new jobs at a rapid pace,” said Michael D. Gallagher, president and chief executive of the ESA in Washington, D.C. “Computer and video game companies have made an important contribution to our nation’s economy while stimulating technological innovations and expanding the impact of games on our daily lives.”

The report found that the U.S. game industry directly employs more than 32,000 people in 34 states, up from 23,000 in 2005. The average industry wage is $89,781, and total compensation for all of those directly employed in 2009 was $2.9 billion. Indirectly, the industry employs 120,000 people in places such as game stores and related jobs.

California has the largest number of employees in the game industry, with 52,996 directly and indirectly employed in the game business. The ESA said that California’s game business contributed $2.6 billion in direct and indirect compensation to Californians in 2009. Its companies added $2.1 billion to the Golden State’s economy and grew by a real annual rate of 11.4 percent from 2005 to 2009, while the state economy shrank.

Texas ranked second nationally in game industry employment, with 13,613 direct and indirect employees. Washington state was third with 11,225; New York, Massachusetts, and Illinois were the next largest states. Virginia saw 77 percent growth from 2005 to 2009. The direct employee counts are shown below.