That is a very broad question as you could be comparing an i7 2700k and an i5 6600k...
However, between the same generation of processors, the i7s are generally the same for gaming compared to their i5 counterparts. Games do not benefit from the 4 extra threads.