If you have a discrete GPU and are on an Intel platform, RAM speed doesn't have much effect on gaming. If you are gaming on integrated graphics or have an AMD Ryzen chip, RAM speed becomes more important, as integrated graphics uses system memory as VRAM, so having faster RAM improves your IGP's performance. For AMD Ryzen CPUs, the speed of your RAM dictates the speed that the two core clusters in the CPU talk to each other, and having a slower link between those clusters due to slower RAM can hurt gaming performance.