[freespace2] better movie player
Taylor Richards
mtrs at bellsouth.net
Tue Mar 25 09:18:29 EST 2003
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?
Taylor
On Mon, 2003-03-24 at 20:00, Taylor Richards wrote:
> On Mon, 2003-03-24 at 04:12, Dan Olson wrote:
> > The problem in hooking the standalone player into FS2 was just that...
> > hooking the standalone player into FS2. By this I mean utilizing the
> > graphics API that FS2 provides. The current code is very very crappy,
> > it was never a high enough priority to fix. It needs to somehow use
> > glTexSubImage2D to update the frames. If it is a matter of not having
> > the proper functionality in the FS2 graphics libraries, then the FS2 API
> > should be extended, rather than separating the MVE code.
>
> Using a couple functions from fs2_open ( gr_opengl_bitmap_ex and
> gr_opengl_bitmap_internal ) this works but timing it doesn't reveal any
> real speed increase. I had to call gr_opengl_bitmap_ex directly from
> mveplayer.cpp in order for it to display anything (ie. calling
> gr_opengl_bitmap_ex from gr_bitmap_ex didn't work). I may not have done
> something correctly but I'll keep playing with it. Could this slowdown
> be an issue with the nvidia drivers? I'll try it on the G400 and see if
> there is a difference.
--
Taylor Richards <mtrs at bellsouth.net>
More information about the freespace2
mailing list