taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

Tango synoptic viewer laggy #1176

Closed mariocaptain closed 3 years ago

mariocaptain commented 3 years ago

Hi all,

I am sorry if this question is not directly related to Taurus. In my project I need to display a synoptic of about 100 devices with about 200 attributes.

I love Taurus, but the reason I don't opt to use TaurusJDrawSynopticsView is because:

So I have been using the tango's java built-in synoptic viewer (fr.esrf.tangoatk.widget.jdraw.SimpleSynopticAppli), so far so good.

The problem is that I am running the viewer together with several Taurus Gui applications, all on a Raspberry Pi 4, and while the Taurus Gui programs are very smooth in updating the attribute values (usually < 1 second), the SimpleSynopticAppli is very laggy in updating changes of attribute (usually from 3 to 10 seconds).

For most of the attributes, I set a change event in the device_init() function of the device server, and push changes in their readand writefunctions.

In the Diagnostics menu of the synoptic viewer, I can see that the viewer seems to do both polling and event listening, and the update period is set at the default 1000 milliseconds (can't be lowered).

Does anyone experience the same?

cpascual commented 3 years ago

Hi

I cannot comment on the java application. WeI don't use it.

But regarding taurus jdraw viewer, note that some of its elements are dynamic (e.g. , attribute values can be displayed, and backgroud colors are updated) . With this I mean that it should be possible to implement other required dynamism with taurus jdraw viewer.

Finally, you may be interested in https://github.com/MaxIV-KitsControls/lib-maxiv-svgsynoptic , which is a very interesting synoptic viewer compatible with taurus and based on SVG instead of jdraw files.

mariocaptain commented 3 years ago

Thanks so much @cpascual !