In terms of overall gaming performance, the Intel Pentium G3220 3.0GHz is marginally better than the Intel Pentium G2120 3.1GHz when it comes to running the latest games. This also means it will be less likely to bottleneck more powerful GPUs, allowing them to achieve more of their gaming performance potential.
The Pentium G3220 3.0GHz was released over a year more recently than the Pentium G2120 3.1GHz, and so the Pentium G3220 3.0GHz is likely to have better levels of support, and will be more optimized for running the latest games.
The Pentium G3220 3.0GHz and the Pentium G2120 3.1GHz both have 2 cores, and so are quite likely to struggle with the latest games, or at least bottleneck high-end graphics cards when running them. With a decent accompanying GPU, the Pentium G3220 3.0GHz and the Pentium G2120 3.1GHz may still be able to run slightly older games fairly effectively.
More important for gaming than the number of cores and threads is the clock rate. Problematically, unless the two CPUs are from the same family, this can only serve as a general guide and nothing like an exact comparison, because the clock cycles per instruction (CPI) will vary so much.
The Pentium G3220 3.0GHz and Pentium G2120 3.1GHz are not from the same family of CPUs, so their clock speeds are by no means directly comparable. Bear in mind, then, that while the Pentium G2120 3.1GHz has a 0.1 GHz faster frequency, this is not always an indicator that it will be superior in performance, despite frequency being crucial when trying to avoid GPU bottlenecking. As such, we need to look elsewhere for more reliable comparisons.
Aside from the clock rate, the next-most important CPU features for PC game performance are L2 and L3 cache size. Faster than RAM, the more cache available, the more data that can be stored for lightning-fast retrieval. L1 Cache is not usually an issue anymore for gaming, with most high-end CPUs eking out about the same L1 performance, and L2 is more important than L3 - but L3 is still important if you want to reach the highest levels of performance. Bear in mind that although it is better to have a larger cache, the larger it is, the higher the latency, so a balance has to be struck.
The Pentium G3220 3.0GHz and the Pentium G2120 3.1GHz have the same L2 cache size, and the same L3 cache size, so in terms of cache-related gaming performance, the two CPUs are too similar to judge.
The maximum Thermal Design Power is the power in Watts that the CPU will consume in the worst case scenario. The lithography is the semiconductor manufacturing technology being used to create the CPU - the smaller this is, the more transistors that can be fit into the CPU, and the closer the connections. For both the lithography and the TDP, it is the lower the better, because a lower number means a lower amount of power is necessary to run the CPU, and consequently a lower amount of heat is produced.
The Pentium G3220 3.0GHz has a 1 Watt lower Maximum TDP than the Pentium G2120 3.1GHz (though they were created with the same size 22 nm manufacturing technology). What this means is the Pentium G3220 3.0GHz will consume slightly less power and consequently produce less heat, enabling more prolonged computational tasks with fewer adverse effects. This will lower your yearly electricity bill slightly, as well as prevent you from having to invest in extra cooling mechanisms (unless you overclock).