[Kde-games-devel] Ideas for QML support in libkdegames

Viranch Mehta viranch.mehta at gmail.com
Fri Mar 8 07:51:34 UTC 2013


On Thursday 07 Mar 2013 5:23:40 PM Viranch Mehta wrote:
> On Thursday 07 Mar 2013 11:54:17 AM Albert Astals Cid wrote:
> > What do you mean by glitchy? Do you have the code somewhere so we can try
> > and see it?
> 
> the code has irrelevant comments and other stuff, will clean up and push to
> a branch in libkdegames, and corresponding port to a branch in kbreakout
> (i'm testing all of this with kbreakout).

Pushed to branch 'viranch/qtquick' in libkdegames, and corresponding port of 
kbreakout in branch 'qtquick/imageprovider' in kbreakout (note that there is a 
'viranch/qtquick' also in kbreakout which is different).

> 
> > > Simple resize of window from landscape to portrait mode takes 50%
> > > CPU for 1-1.5 seconds.
> > 
> > Maybe this is because the images are being generated for all the sizes in
> > between the original and the final size?

so I tried this but could not find any way to know when a resize is ending. I 
found sceneResized signal and the resizeEvent, both of which are triggered on 
all intermediate sizes.

I reliased the default value of asynchronous for QML Image is false, so I set 
it to true and the main window is no longer blocked when resizing, but the 
images become gray for fraction of second as they're rendered.

Viranch



More information about the kde-games-devel mailing list