Sie sind nicht angemeldet.

Mael B.

Schüler

  • »Mael B.« ist der Autor dieses Themas

Beiträge: 157

Wohnort: France, Montpellier

  • Nachricht senden

1

Freitag, 14. August 2020, 19:35

Same <include> element inside several scenes

Hi,

the new feature <include> elements inside <scene> elements is great *thumbup*

Apparently, in the case of the presence of the same <include> element in several scene (e.g. <include url="my_settings.xml" /> ), the file my_settings.xml is loaded again. It does not seem to induce problems, but my simple questions are:
- is there a significant impact on performance/loading time ?
- if yes, is there any way to avoid the re-loading of the file which was already loaded ?

Mael B.

Schüler

  • »Mael B.« ist der Autor dieses Themas

Beiträge: 157

Wohnort: France, Montpellier

  • Nachricht senden

2

Freitag, 14. August 2020, 22:05

"is there any way to avoid the re-loading of the file which was already loaded ? "
actually is yes !

I remembered the existence of if="condition" in xml element like that <include url="design_default.xml" if="design == default" /> *g*