Custom game browser matches on dedicated servers

Asking mainly because a lot of games I played on CGB so far are so damn laggy it feels like I’m playing on dial up with people in Australia. Can anyone shed some light on this? Or are these hosted peer to peer?