How to optimize normcore?
We're looking to reduce the amount of bandwidth that we use. What are some good practices to reduce the amount of bandwidth being used? What are some good practices to reduce the cost of normcore for our use case?
datastoreFrameDuration property. The default value is 1.0/20.0 which sends updates at 20hz. Setting this value lower results in more frequent updates, but also higher bandwidth usage. If you're running a local installation, values up to your render framerate can be acceptable; however, you'll rarely want to send updates more often than 20hz. Typically, even 10hz works well with Normcore. You might want to experiment with this value to see if it improves the update delay. source (https://normcore.io/documentation/room/datastore#delta-updates)datastoreFrameDuration property is a part of the Room class in Normcore. You can adjust this property in your script where you have access to the Room instance. Here's a simple example of how you might do it:Room class and its properties in the Normcore Documentation (https://normcore.io/documentation/reference/classes/Normal.Realtime.Room).// Assuming you have a reference to the Room instance
Normal.Realtime.Room room = ...; // get your Room instance
// Set the datastoreFrameDuration property
room.datastoreFrameDuration = 1.0/30.0; // for example, to send updates at 30hz