I have a JavaFX UI that displays a relatively large data set. When the data set is changed, the changes are queued up and then the changes need to be "pushed" to the UI. Often there are more changes in the queue than I can push to the UI in one Platform.runLater()
-- trying to push them all causes the JavaFX window to stutter or freeze.
Since the changes are in a queue, it's easy for me to break them into a series of batches. I would like to run a batch each time the javaFX ui thread loops.
How do I connect to the FX thread so it calls my method once every loop? In addition, about how many milliseconds can I responsibly use per-loop to update the data set?