Topic: Optimized Internet connection checking logic

Hello

The method OnlineMaps.CheckServerConnection() works perfectly, however it downloads a 512x512 tile and that's a lot actually (it reduces our game loading speed and increases the traffic, which we try to minimize)... is there a way to optimize it somehow - to make it downloaded a small 16x16 tile, for example?

Best regards

Re: Optimized Internet connection checking logic

Hello.

The main idea of this method is to try to download a single tile, and if successful, you have a connection.
But you can write your own method, that will make a request to some other file, such as html, js or css.
Usually these files are quite small.

Or you can make a DNS lookup, and make ping to host ip.
https://msdn.microsoft.com/en-us/librar … 8(v=vs.90)
https://docs.unity3d.com/ScriptReference/Ping.html

Kind Regards,
Infinity Code Team

Re: Optimized Internet connection checking logic

I see, thanks