package
0.1.6
Repository: https://github.com/xiaonanln/goworld.git
Documentation: pkg.go.dev

# Constants

Async configurations.
For Underlying Networking BUFFERED_READ_BUFFSIZE is the read buffer size for BufferedReadConnection.
BUFFERED_WRITE_BUFFSIZE is the write buffer size for BufferedWriteConnection.
CLIENT_PROXY_READ_BUFFER_SIZE is the read buffer size for gates' client proxies.
COMPRESS_WRITER_POOL_SIZE is number of write compressors in the pool for gateCOMPRESS_WRITER_POOL_SIZE = 100 CLIENT_PROXY_SET_TCP_NO_DELAY = true sets client proxies to TcpNoDelay.
CLIENT_PROXY_WRITE_BUFFER_SIZE is the write buffer size for gates' client proxies.
Tunable Options.
DEBUG_CLIENTS prints clients operation debug logs.
DEBUG_FILTER_PROP prints filter props debug logs.
DEBUG_MIGRATE prints migration debug logs.
DEBUG_MODE = true turns on debug mode.
DEBUG_PACKET_ALLOC prints packet allocation debug logs.
DEBUG_PACKETS prints packet send/recv debug logs.
DEBUG_SAVE_LOAD prints save & load debug logs.
DEBUG_SPACES prints space operation debug logs.
DISPATCHER_CLIENT_FLUSH_INTERVAL is the flush interval for dispatcher clients (game -> dispatcher).
DISPATCHER_CLIENT_PROXY_READ_BUFFER_SIZE is dispatcher client proxies' read buffer size.
DISPATCHER_CLIENT_PROXY_WRITE_BUFFER_SIZE is dispatcher client proxies' write buffer size.
DISPATCHER_CLIENT_PROXY_WRITE_FLUSH_INTERVAL is the flush interval for client proxy.
DISPATCHER_CLIENT_READ_BUFFER_SIZE is the read buffer size for gates/games' connections to dispatcher.
DISPATCHER_CLIENT_WRITE_BUFFER_SIZE is the writer buffer size for gates/games' connections to dispatcher.
DISPATCHER_FREEZE_GAME_TIMEOUT is timeout for freezing & restoring game.
For Dispatcher DISPATCHER_GC_PERCENT is the GC percent for dispatcher.
DISPATCHER_LOAD_TIMEOUT is timeout for loading entity.
DISPATCHER_MIGRATE_TIMEOUT is timeout for entity migration.
Tunable Options.
server tick interval => affect timer resolution.
enter space should finish in limited seconds.
ENTITY_PENDING_PACKET_QUEUE_MAX_LEN is the maxium number of packets in pending queue when entity is blocked.
GAME_PENDING_PACKET_QUEUE_MAX_LEN is the maxium number of packets in pending queue when game is blocked.
packet queue size.
server tick interval => affect timer resolution.
For Gate Service GATE_SERVICE_PACKET_QUEUE_SIZE is the packet queue size of gate service.
server tick interval => affect timer resolution.
Whether to turn off flow control, 0 represents “Do not turn off” by default, 1 represents “Turn off”.
Fast retransmission mode, 0 represents off by default, 2 can be set (2 ACK spans will result in direct retransmission).
Protocol internal work interval, in milliseconds, such as 10 ms or 20 ms.
Whether nodelay mode is enabled, 0 is not enabled; 1 enabled.
KCP Options.
KCP Options.
KCP Options.
For Snappy Compress MIN_DATA_SIZE_TO_COMPRESS is the minimal data size to compress.
For Storage For Operation Monitor OPMON_DUMP_INTERVAL is the interval to print opmon infos to output.
should be true for performance, set to false for testing only.
For Packets Send & Recv PACKET_PAYLOAD_LEN_COMPRESS_THRESHOLD is the minimal packet payload length that should be compressed.
try to make sure that this value is smaller or equal to _MIN_PAYLOAD_CAP, so that no buffer needs to be allocated.