UI UnitManager windows #522
Replies: 4 comments 6 replies
-
Sure let's optimize that.
Ok. but in short term, we could go back to using FXGL/JavaFX to build the UI from the ground up and set this UI up for supporting REST API early on. Shall we ? |
Beta Was this translation helpful? Give feedback.
-
Having the AWT Thread trigger the updates is causing the Concurrent exceptions; this is probably indirectly from use of the SwingInvoke later method. I believe generally we expect the UI window to update on the event generated via the Simulation engine and not a background refreshing? As to the Web UI, I'm doing a Responsive Design course over Christmas which should help change my hacking of Web UIs into some more usable. Then I want to create a pilot next year of a basic Web UI. |
Beta Was this translation helpful? Give feedback.
-
Another thing is about standardization and customization. The thing is that currently we limit the dragging of a window in such a way that the whole width of it must fit the desktop. Initially I was limiting how the height of the unit window must fit inside the desktop but it doesn't work well after we allow resizing the desktop. So we can work toward standardizing the location of where each panel should pop up. I supposed this is what most strategy or simulation games would prefer as it helps player focus on the mechanics of the games. But for real world mission system, it's not a bad thing to have more degree of UI customization. |
Beta Was this translation helpful? Give feedback.
-
btw, the next version Java, namely, Java 18, will include a simple web server for testing and educational purpose. Having said that, are you still interested in using springboot or switch to something else for bootstrapping ? |
Beta Was this translation helpful? Give feedback.
-
I don't use the Unit windows in the UI that much. But what I have realised is that they are very heavy.
When looking at the Settlement window for Sch. Point it consumes a lot of CPU. Plus the manufacturing panel creates ConcurrentModification exceptions because it is continuously scanning the resources to look for new processes. Also once I close it; it continues to update in the background event though nothing is showing.
@mokun The only way I can see to resolve this is to go back to using CopyOnWrite maps inside the inventory classes which seems a real shame.
The Building tab in the Settlement window is too large. I think we should have the Building panel as a separate Window and just show a high level summary list in the Settlement window.
Having said all that I think the future is in a Web UI based on a REST api of the simulation engine.
Beta Was this translation helpful? Give feedback.
All reactions