Applies to:
PcVue version 7.20a onwards. |
||
|
||
Summary:
This article explains how optimise CPU performance when loading Animated GIF images into a mimic. |
||
|
||
Details:
If a GIF animation is heavily used in a mimic (e.g. played in a loop) the PC’s CPU loading increases considerably and slows down navigation in the HMI. If the GIF images are deformed, that increases the CPU loading further. In an extreme case, a call to open a pop-up windows will not work. In such cases, the pop-up windows may be open behind the main window instead of being open in the foreground. The reason is as follows. The graphic interface (the HMI that manages the user interface) is overloaded with refresh requests (Window ‘repaint’). The CPU utilisation rate is then close to 100% because of the frequency of refreshing the GIF Animation. This is set by default to 10 milliseconds and is not adjustable in its Properties dialog. The means of avoiding this problem are to modify the playback speed of the GIF and to control its running and stopping by linking it to a variable: Modify the playback rate
The animated GIF will flip one frame every n milliseconds. Link the playback condition to a variable
The animated GIF will only run when the variable has a non-zero value. Both (recommended)
Further information For advice on using GIF animations, see the PcVue Help topic ‘Developing the HMI.Drawing.Inserting images.Animated GIF and AVI Files’. |
||
|
||
|
Created on: 05 Nov 2010 Last update: 13 May 2024