Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Switch perspective is slow in e(fx)clipse(Have multiple perspectives in my app, If I open perspective A and then open perspective B, when I switch back to perspective A, the application's main thread will pause.)
Switch perspective is slow in e(fx)clipse [message #1807847] Tue, 11 June 2019 05:20 Go to next message
Zhendong Li is currently offline Zhendong LiFriend
Messages: 8
Registered: October 2018
Junior Member
I tried to track this problem using VisualVM and found that javafx.scene.CssStyleHelper.createStyleHelper() took the most CPU time when I switched perspective A again.
Does this mean that the interface of perspective A has been redrawn?
If you switch between different parts in the same perspective, this problem will not occur.
Re: Switch perspective is slow in e(fx)clipse [message #1807862 is a reply to message #1807847] Tue, 11 June 2019 07:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
You are right there are 2 problems:
* at some time in JDK-8 Timeframe a performance fix for CSS processing was reverted
* we detach the active perspective on switching

We can (and should) do 2 things:
* apply a workaround we already use for eg detach to minimize the impact by detaching
* don't detach the node containing the perspective but keep it in the SG
Re: Switch perspective is slow in e(fx)clipse [message #1807872 is a reply to message #1807862] Tue, 11 June 2019 08:45 Go to previous message
Zhendong Li is currently offline Zhendong LiFriend
Messages: 8
Registered: October 2018
Junior Member
Thank you very much for your reply!
Looking forward to any progress~(●'◡'●)
Previous Topic:Product based on efxclipse 3.5 can not be build in Tycho with Maven 3.6.1
Next Topic:Specifying Splashscreen location
Goto Forum:
  


Current Time: Fri Sep 20 08:05:00 GMT 2019

Powered by FUDForum. Page generated in 0.01750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top