← Back to team overview

openlp-core team mailing list archive

[Bug 856296] Re: Improve performance of song loading for Preview/Live

 

I think the rendering is good at the moment. Currently I do not know how
we could improve it further.

Maybe we can improve the preview image display, because it seems that it
takes some additional time to be build (verse list is
rendered/displayed, but the image not).

        if not self.screens.current[u'primary'] and self.serviceItem and \
            self.serviceItem.is_capable(ItemCapabilities.ProvidesOwnDisplay):
            # Grab now, but try again in a couple of seconds if slide change
            # is slow
            QtCore.QTimer.singleShot(0.5, self.grabMainDisplay)
            QtCore.QTimer.singleShot(2.5, self.grabMainDisplay)
        else:
            self.slidePreview.setPixmap(
                QtGui.QPixmap.fromImage(self.display.preview()))

http://bazaar.launchpad.net/~openlp-
core/openlp/trunk/view/head:/openlp/core/ui/slidecontroller.py#L983

If we can remove the timers somehow, we should be able to make it
snappier in some (!) cases.

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/856296

Title:
  Improve performance of song loading for Preview/Live

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  I think we should try to optimize song loading for Preview/Live
  because users will often double click on a song in song list and want
  to see the preview of the song.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/856296/+subscriptions


References