In RakNetDefines.h: Recompile with these set to enable or disable blocks of code.
- __GET_TIME_64BIT: Use 64 bits for the structure RakNetTime. Doubles bandwidth usage to tranmit this structure, but prevents time overflow after a month.
- _RAKNET_THREADSAFE: Enable to make RakNet safe to call from multiple threads. It is OK to normally have multiple threads running, but not to call non-threadsafe functions from multiple threads. Enabling makes those calls significantly slower.
- __BITSTREAM_NATIVE_END: Don't use endian swapping [Default]. Only comment out if you plan to connect between systems of different endianness. This is enabled by default in BitStream.cpp.
- MAX_ALLOCA_STACK_ALLOCATION: Maximum amount to allocate on the stack using _alloca(). If you crash when _alloca() is called (especially for RPC), decrease this value.
- USE_WAIT_FOR_MULTIPLE_EVENTS: On Windows, use the event timer system for when network messages arrive internally. When off, the reported (but not actual) CPU usage in Task Manager approaches 100%, but the internal update thread runs very consistently. When on, the reported CPU usage is very low. Whether the update thread runs consistently seems to depend on the individual computer, but generally runs acceptably on Windows XP or newer

|
Defining __BITSTREAM_NATIVE_END in .net 2003
(You could also just modify RakNetDefines.h) |
|