NinevaStudios / mqtt-utilities-unreal

MqttUtilities is a plugin for Unreal Engine intended to expose MQTT client functionality to blueprints
Eclipse Public License 1.0
152 stars 56 forks source link

high latency when publishing message #3

Open filipwasil opened 3 years ago

filipwasil commented 3 years ago

Hello and thanks for the great work you did here.

I am testing the plugin in a system that needs low latency, and i noticed that the time needed for the message to show up in Eclipse mqtt subscriber is quite long when using this plugin.

When i test Eclipse Subscriber, Broker, and publisher ( https://mosquitto.org/ ) messages are being sent with very low latency ( less than 100ms for sure). When i test Eclipse Subscriber and Broker, but i use this plugin as a publisher, the messages are reaching the broker usually after ~400ms - 600ms.

Is this a known issue ? Do you know the reason for it ?

I run publisher, UE4 app, broker and subscriber all on local machine

TarasOsiris commented 3 years ago

@filipwasil hi, what platform is it?

filipwasil commented 3 years ago

Windows

TarasOsiris commented 3 years ago

@filipwasil Please try the https://github.com/NinevaStudios/mqtt-utilities-unreal/tree/tls_support branch if it is the same

filipwasil commented 3 years ago

Thanks, i will test it and be back to you

filipwasil commented 3 years ago

In terms of delays and latency i see no differences between the tls_support and the release 1.0.0 i used previously

TarasOsiris commented 3 years ago

@filipwasil thanks for checking, unfortunately, we don't have any more ideas, maybe you can try profiling it somehow