I have a real-time data program that has 24 dialogues - they show different real-time data that's gathered from a comm port.
The dialogues are classes that load from JSON files and are placed into a dictionary. They contain layout data for tables, buttons, pictures, etc. - just like HTML - the text/colours/etc. change dynamically, data bound to the comm port data.
There is a menu navigation system - 4 main menus, for the sake of explanation assume 6 dialogues can be navigated to by these menus.
The entire program runs very well on a low power CPU in Linux - it loads instantaneously on Windows but takes about 12 seconds to load the 24 JSON files.
My idea was to load the main title page and show it immediately, then async load the other JSON files.....but if a user navigates to a dialogue before it's loaded I need to await it/prioritise it.
Any thoughts?
What I have tried:
I've loaded all the files in a parallel loop - but the code runs on different hardware - some single core - which doesn't aid perceived response.