← Back to team overview

openshot.developers team mailing list archive

[Bug 623073] Re: Slow switch to "Transitions" and "Effects" tabs at first time

 

The tab initializing is no longer slow.  The speed-up was exactly as you
suggested.  The image size of the effects have just been reduced, so
there is no need to resize them.  The transitions now have an /icons/
folder that has a reduced size image, again preventing OpenShot from
needing to resize on-the-fly.  Thanks!

** Changed in: openshot
       Status: Confirmed => Fix Committed

-- 
Slow switch to "Transitions" and "Effects" tabs at first time
https://bugs.launchpad.net/bugs/623073
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.

Status in OpenShot Video Editor: Fix Committed

Bug description:
Hello

There is a problem when switch to "Transitions" or "Effects" tab at first time, It's slow a little bit, And the problem will be worst if we have a lot of "Transitions" or "Effects".

For test purpose I added about 300 images in "transitions" directory, the switch became slower. Try it please, just make copies of existed transitions and see what happen :-)

The problem comes from this line

pbThumb = pbThumb.scale_simple(80, 62, gtk.gdk.INTERP_BILINEAR)

So, I made a small patch which deals with this problem by using cache, simply create a cache from the image then use the cached version as a thumb.

If this patch is accepted we will need to write a code to deal with cache generating, but temporary I wrote a small file to generate the cache (In attach : thumb-generator.py), put it in "openshot" directory then run it.

Sorry for my English :-)





References