Match Handler instant response

Hello,

I’m making a turn based game where players send their moves to the server. I want the server to respond instantly after the player requests. I know I can do this by setting a high tick rate in MatchLoop but I’m worried this might impact performance.

Is there a better way to do this?

Thanks

Hello @MinatoTW,

If you’re using a Relayed Match then the responses are sent as soon as the server receives them, but if you’re using Authoritative matches the incoming messages are buffered, and on each tick the buffer is passed to the match handler for processing, which will in turn send the outgoing messages as needed.

If your game is turn-based, you shouldn’t even need a high tick rate. May I ask why would you need to send the messages immediately?

Best.

Hello,

Thanks for the response. Yes, I’m using an authoritative server. I guess I just didn’t want the users to see a delay after performing actions. But I guess I’ll using the match loop is my only option.

Would a tick rate of 20-25 impact performance over 1000s of matches? I’m porting over our existing Server (Godot multiplayer) to Nakama.