|Here's the thing......when you're gaming, you're connecting to a specific server. When you're streaming youtube videos, you're connecting to an entirely different server from the one you connect to when you're gaming. Now, if you're pinging a different server, then you're not getting an accurate reading of your ping time to the gaming or youtube server.|
The difference in ping times could be as simple as the lower ping time indicating a server that's closer (ie: less hops away from you) than the gaming server is. The further a server is away from you (again, the more hops) the more likely you are to have a larger ping time.
Don't forget too, if the gaming server you're connecting to is saturated, it's going to make a huge difference in response time.
As was stated above, wireless is less preferable for gaming due to it's inherent susceptibility to lag and latency. I would recommend you connect your gaming rig to your router with a network cable. But, if the issue you're having is related to distance or server saturation, it won't make a difference. But it's worth doing in order to rule that out as a potential cause and also, to improve network performance for your future gaming.
It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.