#Update 30hz and more players in room

3 messages · Page 1 of 1 (latest)

slim mesa
#

Is update 30 hz affected if there are more players in the room because on objects that i am moving with update 30hz the movemnt becomes more janky

zinc quiver
# slim mesa Is update 30 hz affected if there are more players in the room because on object...

Event Receiver (Update 30hz) outputs roughly 30 times a second (Use delta time to get the exact time between executions)

Event Receiver (Update 30hz) outputs for the local player

The "Local player", is you, and no one else
Except, everyone is themselves, and and no one else is them

Basically, it outputs on everyone's screen, roughly 30 times a second

With all this being said, you need to network your circuits

When constantly updating a synced item, like a synced variable, you need to use room authority, to do this, you can use the chip If Local Player Is Room Authority

When constantly updating an object, like text, or moving a ball, or setting the velocity of something, use the object authority, you can do this with Rec Room Object Get Is Local Player Authority and If

If you want to modify something about a synced variable/object that is being updated constantly by the authority and you are not the authority, there is a chance your request could get overwritten/ignored because of networking delays

Say the room authority is setting a variable at 30hz, if you try and modify that variable, there is a chance it wont update, as the room authority has overwritten that value.
To fix this, you could send an event to the room authority via a custom event telling them "Hey, I want to set this variable to this value"

slim mesa