Help DIR-825 stability and performance

my D-Link DIR-825 ver B2 does not work stably, I play games, and when I connect the wire without a router, the network works better, it seems to me that the router creates additional delays, I am thinking of overclocking its processor and reducing memory latency, but I have never done it with routers, I'm looking for help here, I heard that there are unofficial modified firmwares that are better than the official ones, I would like to have the capabilities that I described, I plan to install radiators on the processor and memory itself, and went to increase the router a little, help with a good firmware and advice