-
-
Notifications
You must be signed in to change notification settings - Fork 418
Open
Description
SEE LAST COMMENT
I am trying to set SendBufferSize for my Steam networking sockets in two ways. First would be global options and second the parameters you pass to CreateListenSocketIP:
unsafe
{
var sendBufferSize = 1024 * 1024;
SteamGameServerNetworkingUtils.SetConfigValue(
ESteamNetworkingConfigValue.k_ESteamNetworkingConfig_SendBufferSize,
ESteamNetworkingConfigScope.k_ESteamNetworkingConfig_Global, IntPtr.Zero,
ESteamNetworkingConfigDataType.k_ESteamNetworkingConfig_Int32, new IntPtr(&sendBufferSize));
}
var options = new[]
{
new SteamNetworkingConfigValue_t
{
m_eValue = ESteamNetworkingConfigValue.k_ESteamNetworkingConfig_SendBufferSize,
m_eDataType = ESteamNetworkingConfigDataType.k_ESteamNetworkingConfig_Int32,
m_val = new SteamNetworkingConfigValue_t.OptionValue
{
m_int32 = 1024 * 1024
}
}
};
SteamGameServerNetworkingSockets.CreateListenSocketIP(ref address, options.Length, options);But neither of the config helpers seem to work for me - the limit stays the default (512 * 1024). How may I debug the issue and could it be my values being GCed or something to do with pointers? Not sure.
Metadata
Metadata
Assignees
Labels
No labels