How do I find out why the render loop is running?

Tomas Mikula tomas.mikula at gmail.com
Tue Sep 30 14:28:32 UTC 2014


There might be some kind of infinite loop which is not apparent due to
asynchrony, such as recursive Platform.runLater

    void foo() {
        Platform.runLater(this::foo);
    }

or an infinite loop in layout:

    void layoutChildren() {
        Platform.runLater(this::requestLayout);
    }

On Tue, Sep 30, 2014 at 4:03 PM, Mike Hearn <mike at plan99.net> wrote:
>>
>> 2) A control, such as a ProgressIndicator, that uses animation to display
>>> changes (even if the control is scrolled off the screen)
>>>
>> One common control animation that is easily overlooked is a text cursor,
>> which is animated to blink - when the control has focus.
>
>
> That would only cause one pulse per second or so, right?


More information about the openjfx-dev mailing list