You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Disable Nagle's algorithm for WebSocket TCP.
This should greatly decrease latency for the most common use cases. A new function WebSocketPeer::set_no_delay will allow to configure it if so desired.
This commit is contained in:
@@ -139,6 +139,11 @@ uint16_t EMWSPeer::get_connected_port() const {
|
||||
ERR_FAIL_V_MSG(0, "Not supported in HTML5 export.");
|
||||
};
|
||||
|
||||
void EMWSPeer::set_no_delay(bool p_enabled) {
|
||||
|
||||
ERR_FAIL_MSG("'set_no_delay' is not supported in HTML5 export.");
|
||||
}
|
||||
|
||||
EMWSPeer::EMWSPeer() {
|
||||
peer_sock = -1;
|
||||
write_mode = WRITE_MODE_BINARY;
|
||||
|
||||
Reference in New Issue
Block a user