| cr88192 2007-02-18, 9:55 pm |
|
"cr88192" <cr88192@NOSPAM.hotmail.com> wrote in message
news:b2273$45d818d7$ca83a8d6$31519@saipa
n.com...
> well, recently I went and beat together some code to allow my apps (a 3D
> engine, mapper, modeler, ...) to record video in real time (note, pure
> software encoding).
>
> it is annoyingly difficult to get good performance with this kind of thing
> (preventing recording from hurting framerate too bad).
>
> for example, one wants to use the app, and at the same time record an
> output video to a file. I have it set up so that it encodes a frame every
> 1/15th second, which has the annoying property of interfering with the
> smoothness of the apps' framerate.
>
turns out it is not the scaling and encoding really at all, only that this
is what shows up in the profiler.
relying on commenting, perception, and task manager, it seems most of the
time (and disruption of the framerate) is actually going into the call to
glReadPixels() anyways...
dunno if there is any faster way to get at the contents of the framebuffer.
of course, the scaling and encoding is hardly free either it seems (seems to
have a perceptually lower impact on framerate though).
or such...
|