If you're on wireless and you're on the other side of the house your ping will of course be forgeted. The only real solution is to run an Ethernet cord from your router/modem to your computer directly bypassing any type of wireless signal thats not strong enough/getting interfered by walls or other wireless connections.
Ethernet cord being:

You can get very long Ethernet cords up to 50 meters, it doesn't require advanced hooking up you can just drill 2 holes both ends of the house and run it through the roof. Though I'd suggest doing a bit of research first.