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

Albert Astals Cid aacid at kde.org
Sat Mar 9 14:46:39 UTC 2013


El Dissabte, 9 de març de 2013, a les 08:52:08, Ian Wadham va escriure:
> On 08/03/2013, at 6:51 PM, Viranch Mehta wrote:
> > 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:
> >>>> 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.
> 
> I think these problems have been with us for about 7 years, ever since we
> started porting to KDE 4 and required games to be themeable and resizable.
> It seems to me that the best one can do is settle for the least ugly
> alternative.
> 
> Using an unobtrusive background color (to appear before the background pic
> is rendered) can at least avoid some flashing white rectangles.

To be honest the only solution i can think of is something similar. Put a 
default background until all items are generated.

The question here is, can you know all items have been generated?

Cheers,
  Albert

> 
> All the best, Ian W.
> 
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel


More information about the kde-games-devel mailing list