Skip to content

Commit 5495c42

Browse files
committed
[bugfix] Use same publish rate as refBox, use simple sleep
1 parent ade6a32 commit 5495c42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/app/controller/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ func (c *GameController) updateOnlineStates() {
156156
c.Engine.EngineState.AutoRefsConnected = autoRefs
157157
}
158158

159-
// publishToNetwork publishes the current state to the network (multicast) every 100ms
159+
// publishToNetwork publishes the current state to the network (multicast) every 25ms
160160
func (c *GameController) publishToNetwork() {
161161
for {
162-
c.timer.WaitTillNextFull(100 * time.Millisecond)
162+
c.timer.SleepConsumer(25 * time.Millisecond)
163163
c.Publisher.Publish(c.Engine.State)
164164
}
165165
}

0 commit comments

Comments
 (0)