A common guideline is to keep it to less than two hours a day. Many health experts suggest limiting recreational screen time so that gaming doesn't crowd out sleep, physical activity, homework, and time with family.
The exact number can vary by age and by the child, but keeping sessions moderate and balanced with other activities is the general recommendation.