Performance meter is a performance killer

Found a bug? Post here.
Post Reply
sechel
Posts: 69
Joined: Tue 2. Oct 2007, 09:20

Performance meter is a performance killer

Post by sechel » Thu 27. Jun 2013, 06:27

The performance meter that is installed by default now causes the viewer on some systems to perform poorly. I opt here to disable this by default. Additionally, the code of this thing is not compatible to the modular plug-in based system. In an environment with more than one viewer strange things happen.

benjamin.kutschan
Posts: 48
Joined: Mon 16. May 2011, 16:29

Re: Performance meter is a performance killer

Post by benjamin.kutschan » Thu 27. Jun 2013, 15:04

ok, go ahead.

sechel
Posts: 69
Joined: Tue 2. Oct 2007, 09:20

Re: Performance meter is a performance killer

Post by sechel » Fri 28. Jun 2013, 17:11

Ok, the real problem was that the InfoOverlayPlugin got installed from the View's install method. So whether or not is was registered it got installed. I changed the code at this place a litte to support a real choice of the programmer:

Code: Select all

if (!c.getPlugins(InfoOverlayPlugin.class).isEmpty()) {
	// get only if controller explicitly installs the overlay
	iop = c.getPlugin(InfoOverlayPlugin.class);
}

Post Reply