Re: Rendering filmstrip-style animation
Status: Alpha
Brought to you by:
cwalther
From: James C. W. <jfc...@ya...> - 2010-09-16 07:20:31
|
Hi Christian, Thanks. Now, though, I am having trouble with flipping through virtual image objects(i.e images contained in several local variables), becouse I don't see how to make the patch use the next image object, which was preloaded, in line. Like, when using images on the hard drive, you just tell it the image prefix, then a number that increases by one each interation, and the suffix. I'm not sure how to do it with local variable images. Any suggestions handy? Thanks, James CW --- On Sun, 9/12/10, Christian Walther <cwa...@gm...> wrote: From: Christian Walther <cwa...@gm...> Subject: Re: Rendering filmstrip-style animation To: "Content creation for the Pipmak Game Engine" <pip...@li...> Date: Sunday, September 12, 2010, 8:30 AM James C. Wilson wrote: > if I attempt to give it a hi-res filmstrip(21720x580) > it panics and gives me an out of memory error--understandable given > the hugeness of the image(I have 768 MB RAM). Hmm, that's around 50 MB - I'd have expected that to work, but I don't know offhand where the bottleneck is. Anyway, time is probably better spent implementing real video support than optimizing for such workarounds. > However, this does open the door to some other, less memory- > intensive preloading technique. Maybe preloading around 8 frames > before the animation begins, then preloading ahead as the already > loaded segment plays? Does that have any merit, do you think? I doubt it - image loading is currently done synchronously, i.e. it must be done in its entirety between displaying two frames. That will probably cause stuttering. But to be certain, go ahead and try it. One thing I would suggest that might accelerate the copying a tiny bit is to arrange the frames in the filmstrip vertically, not horizontally. Since pixel data is stored line by line, that keeps the bits needing to be copied close together in memory. -Christian ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Pipmak-Users mailing list Pip...@li... news://news.gmane.org/gmane.games.devel.pipmak.user https://lists.sourceforge.net/lists/listinfo/pipmak-users |