Skip to content

Commit

Permalink
Fix deviations from original code are disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sh4k3n committed Nov 29, 2021
1 parent 0d53112 commit 27a0451
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ikcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
// Changes to original KCP code:
// 1) Reduce KCP buffer size to max MTU size
// https://github.com/skywind3000/kcp/issues/264
#define KCP_BUFFER_SIZE_OPTIMIZATION
// #define KCP_BUFFER_SIZE_OPTIMIZATION
// 2) Let user replace KCP data buffer after each ikcp_output when user wants to continue using the buffer received in ikcp_output
#define KCP_EXTERNAL_BUFFER
// #define KCP_EXTERNAL_BUFFER
// 3) Optimize ikcp_check to consider fast resend for update intervals
#define KCP_INTERVAL_OPTIMIZATION
// #define KCP_INTERVAL_OPTIMIZATION
// 4) API for how many packets is waiting to be received
#define KCP_WAIT_RCV_SUPPORT
// #define KCP_WAIT_RCV_SUPPORT
// 5) Always use malloc/free hooks with user parameter
#define KCP_USER_ALLOC
// #define KCP_USER_ALLOC
// 6) No logging
#define KCP_DISABLE_LOGGING
// #define KCP_DISABLE_LOGGING

//=====================================================================
// 32BIT INTEGER DEFINITION
Expand Down

0 comments on commit 27a0451

Please sign in to comment.