[freespace2] better movie player

Taylor Richards mtrs at bellsouth.net
Thu Mar 27 20:44:37 EST 2003


On Thu, 2003-03-27 at 18:56, Steven Fuller wrote:
> On 25 Mar 2003, Taylor Richards wrote:
> 
> > A bit a tinkering later and I got about a 30% speed improvement on
> > nvidia and G400 hardware.  Doing it another way I get a full 4x speed
> > increase on nvidia but the G400 no longer shows the video.  As I don't
> > actually know anything about OpenGL programming I ordered some reading
> > material (red book) to help me out and get something better
> > implemented.  The question becomes, in what other areas/ways should this
> > be used so that I can plan accordingly?
> 
> I think the fastest way to do this (with pure OpenGL 1.2) would be to
> create one (or 2 or 4, however many are required to hold the image on a
> V3) at the very beginning, and then use glTexSubImage2D to upload each
> frame into the textures.  The FS2 bitmap code does not have a way to do
> this yet.

This is pretty much the way I'm doing it now, all in mveplayer rather
than gropengl.  I'm also only creating one at the moment but I'll work
on making it better.  If the movie code is about the only place this can
really be used I'll continue with what I'm doing now.  If it can be used
by other parts of the game then I'll try and extend the bitmap code to
do this.  Neither way is going to be really quick with me doing it since
I have to learn everything as I go but I'm willing try.  I've done away
with the fs2_open code since it wasn't getting me anywhere.

The nvidia is down into the low 1/1000ths (down from ~0.01) of a second
per frame with the G400 in the 0.025 second range (down from 0.0997). 
The movies are going to play at a fixed frametime no matter how fast the
framerate is so I'm using that as a goal to reach.


Taylor

-- 
Taylor Richards <mtrs at bellsouth.net>




More information about the freespace2 mailing list