Call API Slow Response

I using a remote server and is what happens to call the API is slow response?

how I can solve it? Thanks

Depends why it is slow. Some investigation of the slowness needs to occur before you know what to do to correct the slowness. Could be a network issue, could be server side, could be a miscalculation of the amount of time the call took, etc, etc. Each would have different steps to resolve.

1 Like

server site and server network is fine, I ping the result.

normally how I can check some investigation of the slowness if not a server site issue?

Debug your server code.

When you say you “ping” the result do you literally mean the “ping” command? Ping only tests network connectivity. It doesn’t test the performance of whatever resource endpoint your app might be hitting. The problem could be that your server is taking 44 seconds to come up with a response to your Unity app.

If you want to see what is slow in the Unity app itself, use the profiler: https://docs.unity3d.com/Manual/Profiler.html

if the problem from my server is taking 44 seconds to come up with a response to Unity app. how I can solve on server site issue ?

Depends on how your server is implemented, but generally you would use a profiler to see what is taking the most time. For example maybe it’s a database query that’s slow. Maybe there’s a really slow algorithm running? You won’t know until you profile it.