#Client/Server calculation question

1 messages · Page 1 of 1 (latest)

naive coral
#

I am currently making a system that should handle the increment of a value periodically. My question is: how would I make this system less stressful for the server? The obvious choice for a system like this is to handle the calculation on the client as doing a loop for each player on the server is very inefficient. Since the value needs to be saved on the server I thought to send a remote event each time a player starts and ends the "increment session" by pressing the same button, and calculate the value on the server with a basic math operation based on the two timestamps. Is there any better solution? Thank you