Re: Aisleriot/Blackjack cards



Hi;

Le dimanche 13 janvier 2008 à 22:35 +0100, Thomas Dybdahl Ahle a écrit :
> søn, 13 01 2008 kl. 21:49 +0100, skrev Christian Persch:
> > Hi;
> > 
> > Le dimanche 13 janvier 2008 à 21:23 +0100, Thomas Dybdahl Ahle a écrit :
> > > I think it would be a nicer solution to change the gamerederer to use
> > > prerendering, so the svg cards wouldn't have to be redrawn every time.
> > > This way the complexity of the cards wouldn't matter, but when scaling
> > > the windows.
> > 
> > The rendered cards are cached, and only need to be redrawn when the size
> > changes. 
> 
> So the mentioned speed problems are on window-resize?
> If so, couldn't the game do a pixmap scaling in the first place, and
> then redo the catche in a background thread or something?

That wouldn't help you on startup where you don't have any rendered
cards yet. Also making the rendering threaded is not easy.

Regards,
	Christian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]