Update WatcherWindow only on change
Status: Alpha
Brought to you by:
wopfel
The WatcherWindows are updated every 50 milliseconds in the main loop of the server thread, regardless of whether the observed object changed or not.
Code in Server.java:
Program.refreshTrainWatcherWindows();
Program.refreshSignalWatcherWindows();
The WatcherWindows should only be refreshed when the observed object changed.
The WatcherWindow should register itself to the observed object, and when the object changes, the object calls every "listening" WatcherWindow.