Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Kain_V on Wed 18/03/2009 12:57:59

Title: Question about the Speed of the game
Post by: Kain_V on Wed 18/03/2009 12:57:59
Hi, I have my game complete about 40% and when I'm testing it I have a speed problem.
The game is with actors, so when the player picks up an item, I have a video playing showing him taking the item.
The thing is when I click on the object the game freezes for some seconds and then play the video.

The question is: Is there any way to make it play faster?
Title: Re: Question about the Speed of the game
Post by: RickJ on Wed 18/03/2009 13:07:52
Have you considered importing the animation frames into AGS and just playing animation loop(s).  My guess is that the delay is due to loading the video into the player.
Title: Re: Question about the Speed of the game
Post by: Kain_V on Wed 18/03/2009 14:28:55
don't want to make an animation. I prefer the video but I was wondering if I could make it run faster.
If it's just the loading time and there's nothing I can do...(sigh)..ok
Thanks for replying!
Title: Re: Question about the Speed of the game
Post by: Pumaman on Wed 18/03/2009 18:54:05
What type of video file are you using? The first time a video plays, it has to load the codec which can take a while. You could mitigate against this by creating a very short 1-second blank video with the same codec, and play it when the game starts so that the codec is already loaded when you actually want to play a video later.

Also, if you're using 3.1.2, consider using Theora video which shouldn't have such a start up time.
Title: Re: Question about the Speed of the game
Post by: Dualnames on Thu 19/03/2009 07:47:28
Theora actually plays with no problems, and concerning the engine the last time videos were "hard" on me, was back while using AGS 2.72.