#1 2018-11-24 14:20:35

Daniel
Member
Registered: 2016-12-08
Posts: 23

Setting WebSockets.Loopdelay to 0 ?

Hi,

My use case is chat like - client sending changes to sever which then sends them to all other clients.
I need minimal latency in communication between clients and so I've set LoopDelay of TWebSocketProcessSettings to 0.

Am I correct in assuming LoopDelay = 0 helps ? Is there any downside to doing this ?
Is there anything else that I may do (or not do) to improve latency with WebSockets ?

Thanks

Offline

#2 2018-11-24 14:27:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,242
Website

Re: Setting WebSockets.Loopdelay to 0 ?

Setting it to 0 may burn 100% of CPU per each thread... I am not even sure it is allowed as a value.
So I guess a value of 2 or 5 may be good enough in practice.

Offline

Board footer

Powered by FluxBB