TabPane renders content of all tabs even only one is active which very impacts startup time.
Here are more details.
>> I did look at startup time of J1 app and Stage.show() takes ~10.3 seconds where
>> javafx.scene.Scene.doLayoutPass() takes 7.927
>> javafx.scene.Scene.doCSSPass() takes 2.124
>>
>>
>> It looks like we do render all tabs even only one is visible.
>> Setting setVisible(false) for all tabs except Timeline doesn't help.
>> Removing all tabs except Timeline tab reduces Stage.show() to 2.792 seconds.
On 8/8/12 4:40 PM, Jonathan Giles wrote:
> Regarding the issue you're talking about, to me I would consider this a major bug. There are some considerations that need to be made regarding the preferred size of a
> TabPane possibly being related to the size of the biggest content in all of the Tabs, but this is something Kinsley (CC'd) should look into. We certainly shouldn't be
> wasting excessive cycles on invisible content.