Game Development Community

Low Framerate When Using GUI Video

by Matthew Hoesterey · in Torque X 2D · 06/09/2010 (9:05 pm) · 5 replies

Has anyone else had any issues with framerate when using the GUIVideo Object?

I recently put in a test video to find that it drops probably every other frame or so. I thought the framerate drop was being caused by the loading I was doing in the background so I tried disabling it and using 100% of the xbox processor for the video but I but still have the frame-rate problem. (this problem only happens on the xbox.).

Any Idea what would cause this?

Thanks!

#1
06/09/2010 (9:07 pm)
I found this thread on the xna forums that worries me a bit :(.

http://forums.xna.com/forums/t/53747.aspx
#2
06/10/2010 (4:39 am)
Are you trying to play video at 720p? Afaik this is simply not possible under xna if you want smooth playback (I've searched high and low and done a lot of experimenting). If you want fullscreen xna video then you'll have to drop the resolution and let the xbox scale the video up.

Alternatively if you can 'animate' instead of playing a video then that would give you full HD. For example, if you look at the intro to Dust it is mostly 'animated' with smaller video parts embedded at some points.
#3
06/10/2010 (8:03 am)
Thanks as alweays Duncan.

I was trying to play it at 720p.
I may have to go with a 1/2 animated approach though I have a great After FX guy and was hopping for video. :(

How far did you drop the resolution? 320? :(.

btw Dust looks amazing. Is that something your working on?
#4
06/10/2010 (9:35 am)
Alas, I had nothing to do with Dust. My analysis of the Dust intro is just an analysis of what I was seeing rather than actually knowing the code-base (if smooth full 720p video is possible in xna then it's a *very* closely guarded secret ;-)

Had to drop our vids to about 640x480 - that sort of range - and letting the xbox upscale it. You may want to experiment - going for 360p might work well for you. You'll just have to try it out really and see what it looks like.

#5
06/10/2010 (11:32 am)
I agree with your annalist of Dust :). That game looks amazing as well.

Guess I'm going to have to go with animations. Sad to waste my after fx guy but oh well :).