Yield to see if NetworkServer sends back anything?
This is just a quick hypothetical question. Let's say we have a game like a city builder.
Then let's say the price script flow is like this: 1. (CLIENT) Clicks to open a "building construction" panel 2. (CLIENT) NetworkClient.Send(Some msg type to ask if prices changed) 3. (SERVER) Checks prices if(It's changed) then it returns new prices, else it sends nothing. 4. (CLIENT) The registered handle changes prices if there's a change, else it just doesn't do anything,
My problem is what if the user has a slow connection, the server is over run by traffic, or they turn off their internet?
They still build the building and such only, to send a message to build that fails on server side due to lack of money?
I know there's tons of easy solutions like erasing prices upon opening and having it always send new prices back. I just thought I'd ask if there's any solutions to optimize server load and outbound traffic by not sending anything back if there's nothing to send.
Your answer
Follow this Question
Related Questions
How to sync color with other players (Unet) 1 Answer
Basic unity networking question 1 Answer
Connecting SQL with Unity 0 Answers