logger.Fatal("Tracker presence event queue size must be >= 1",zap.Int("tracker.event_queue_size",config.GetTracker().EventQueueSize))
}
ifconfig.GetLeaderboard().CallbackQueueSize<1{
logger.Fatal("Leaderboard callback queue stack size must be >= 1",zap.Int("leaderboard.callback_queue_size",config.GetLeaderboard().CallbackQueueSize))
}
ifconfig.GetLeaderboard().CallbackQueueWorkers<1{
logger.Fatal("Leaderboard callback queue workers must be >= 1",zap.Int("leaderboard.callback_queue_workers",config.GetLeaderboard().CallbackQueueWorkers))
}
// If the runtime path is not overridden, set it to `datadir/modules`.
ifconfig.GetRuntime().Path==""{
@@ -606,7 +612,7 @@ type RuntimeConfig struct {
MaxCountint`yaml:"max_count" json:"max_count" usage:"Maximum number of runtime instances to allocate. Default 256."`
CallStackSizeint`yaml:"call_stack_size" json:"call_stack_size" usage:"Size of each runtime instance's call stack. Default 128."`
RegistrySizeint`yaml:"registry_size" json:"registry_size" usage:"Size of each runtime instance's registry. Default 512."`
EventQueueSizeint`yaml:"event_queue_size" json:"event_queue_size" usage:"Size of the event queue buffer. Default 8192."`
EventQueueSizeint`yaml:"event_queue_size" json:"event_queue_size" usage:"Size of the event queue buffer. Default 65536."`
EventQueueWorkersint`yaml:"event_queue_workers" json:"event_queue_workers" usage:"Number of workers to use for concurrent processing of events. Default 8."`
}
@@ -632,7 +638,7 @@ type MatchConfig struct {
CallQueueSizeint`yaml:"call_queue_size" json:"call_queue_size" usage:"Size of the authoritative match buffer that sequences calls to match handler callbacks to ensure no overlaps. Default 128."`
JoinAttemptQueueSizeint`yaml:"join_attempt_queue_size" json:"join_attempt_queue_size" usage:"Size of the authoritative match buffer that limits the number of in-progress join attempts. Default 128."`
DeferredQueueSizeint`yaml:"deferred_queue_size" json:"deferred_queue_size" usage:"Size of the authoritative match buffer that holds deferred message broadcasts until the end of each loop execution. Default 128."`
JoinMarkerDeadlineMsint`yaml:"join_marker_deadline_ms" json:"join_marker_deadline_ms" usage:"Deadline in milliseconds that client authoritative match joins will wait for match handlers to acknowledge joins. Default 5000."`
JoinMarkerDeadlineMsint`yaml:"join_marker_deadline_ms" json:"join_marker_deadline_ms" usage:"Deadline in milliseconds that client authoritative match joins will wait for match handlers to acknowledge joins. Default 15000."`
}
// NewMatchConfig creates a new MatchConfig struct.
// LeaderboardConfig is configuration relevant to the leaderboard system.
typeLeaderboardConfigstruct{
BlacklistRankCache[]string`yaml:"blacklist_rank_cache" json:"blacklist_rank_cache" usage:"Disable rank cache for leaderboards with matching identifiers. To disable rank cache entirely, use '*', otherwise leave blank to enable rank cache."`
CallbackQueueSizeint`yaml:"callback_queue_size" json:"callback_queue_size" usage:"Size of the leaderboard and tournament callback queue that sequences expiry/reset/end invocations. Default 65536."`
CallbackQueueWorkersint`yaml:"callback_queue_workers" json:"callback_queue_workers" usage:"Number of workers to use for concurrent processing of leaderboard and tournament callbacks. Default 8."`
}
// NewLeaderboardConfig creates a new LeaderboardConfig struct.