Page 1 of 1

Log about resources loaded

Posted: 07 Nov 2023, 20:01
by gvol1
"Hi, I have some questions about this log.
[NOESIS/I] 'Assets/NoesisScreens/MainMenu/Views/Menu/SomeDictionary.xaml' loaded
UnityEngine.Debug:Log (object,UnityEngine.Object)
"When Noesis displays this log in reference to a dictionary, is each entry in the dictionary loaded into memory?"

"I want to know if, when a UserControl has a dictionary in its Resources if I create multiple instances of these UserControls, each UserControl creates a separate instance of the dictionary in my memory?"

In the Attachments, you can see that the log repeats 47 times.
Captura de pantalla 2023-11-07 135015.png
Captura de pantalla 2023-11-07 135015.png (9.93 KiB) Viewed 1726 times

Re: Log about resources loaded

Posted: 08 Nov 2023, 11:13
by jsantos
"When Noesis displays this log in reference to a dictionary, is each entry in the dictionary loaded into memory?"
Yes, for now the entire dictionary is loaded. There are plans to improve this though, low priority for now.
"I want to know if, when a UserControl has a dictionary in its Resources if I create multiple instances of these UserControls, each UserControl creates a separate instance of the dictionary in my memory?"
Yes, multiple instances are created. This is the main reason we recommend merging those dictionaries into the global one (in settings menu).