← Back to Home

🚀 Performance optimizations

just some unofficial notes


Every design decision affects the total number of nodes and the complexity of the runtime model. Striking a balance between reusability, modularity, and performance is key, always considering the target hardware where the project will be deployed.

Minimize the number of nodes

A well-structured UI must be efficient and responsive. A high number of nodes increases page load times and affects interface performance.

Suggestions

Reducing Overhead

Each dynamic link adds at least 2-3 extra references, and complex dynamic links (e.g., converters, expressions, switch-case logic) may add dozens. More references = slower traversal and resolution time. Each dynamic link has at least 3 OPC UA nodes:

Suggestions

Dynamic Object Management

Suggestions
Why? How?

FT Optix renders and loads a page only when all its components are fully initialized.

This means that if a page contains many preloaded objects, the system will take longer to process everything before displaying the UI. This can result in longer load times and a noticeable delay when switching between pages.

By using dynamic instantiation with NetLogic scripts, you can create and manage objects only when they are needed, instead of preloading everything at once. This approach is especially useful when dealing with repetitive elements, such as multiple instances of the same type of object that are only shown based on user interaction or external triggers.

One of the biggest benefits of this method is that it enables a form of lazy loading, where objects are instantiated while the page is already displayed and functional. This results in:

This method is particularly advantageous in scenarios where many UI elements would otherwise be hidden by default, such as complex dashboards, interactive lists, or modal pop-ups.

Instead of keeping them in memory while hidden, you can instantiate them only when required, ensuring optimal performance.

Reference: Creating Objects

Image & Graphic Optimization

Suggestions

Diagnostic Tools

NodesCounterDialog widget (from the library)

Project information

When you open the project in IDE the Studio Output will provide you with the actual number of nodes of the project. The message will contain the path of the project following the nodes count. In the same way, if you open with a text editor the project file with extension “.optix” you will find at the end of the file, the statistics of the project.

How to Read

The dialog will display the following metrics:

Nodes Count