We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ade6a32 commit 5495c42Copy full SHA for 5495c42
internal/app/controller/controller.go
@@ -156,10 +156,10 @@ func (c *GameController) updateOnlineStates() {
156
c.Engine.EngineState.AutoRefsConnected = autoRefs
157
}
158
159
-// publishToNetwork publishes the current state to the network (multicast) every 100ms
+// publishToNetwork publishes the current state to the network (multicast) every 25ms
160
func (c *GameController) publishToNetwork() {
161
for {
162
- c.timer.WaitTillNextFull(100 * time.Millisecond)
+ c.timer.SleepConsumer(25 * time.Millisecond)
163
c.Publisher.Publish(c.Engine.State)
164
165
0 commit comments