animation

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
JJPeerless
Posts: 82
Joined: Mon Jun 20, 2005 3:32 am

animation

Post by JJPeerless »

ok..i have 65 png pictures - each a frame in an animation. Im using shine's loadImage() routine to load the images into ram. (the total size is about 4mb) However, I cant load all of them at once..psp crashes.. so one solution I found was to play animation like this:

load image, display image, free image...repeat 65 times.. this worked...however.. the time it took to loadimage from memorystick.. is greater then the time between each frame..so it plays..almost like in slow motion.. too much time between frames..

how can i either a. load all the images before hand.. or b..load images in the background while it displays with the correct wait between each frame..
statikeffeck
Posts: 11
Joined: Sun May 15, 2005 3:23 pm

Post by statikeffeck »

How big is each PNG file, in pixels?
Have you tried storing all frames in 1 PNG file, vertically, and then for each frame just draw a different part of the picture.
orphan frequently
Posts: 9
Joined: Thu Aug 11, 2005 1:52 pm

Post by orphan frequently »

maybe load slowly before use, or load 3 or 4 at a time, preferably with a head start on the loading
Mike3285: wtf is a palindrome
MaroonSand: no its not dude
Post Reply