server_clear.c revision a4a3a04a5b4474db392bdab7b1861f9c25518b66
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/* Copyright (c) 2001, Stanford University
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * All rights reserved
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * See the file LICENSE.txt for information on redistributing this software.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef struct VBOXCRFPS
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncvoid vboxCrFpsInit(PVBOXCRFPS pFps, uint32_t cPeriods)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync pFps->mpaPeriods = crCalloc(sizeof (pFps->mpaPeriods[0]) * cPeriods);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync pFps->mpaBytes = crCalloc(sizeof (pFps->mpaBytes[0]) * cPeriods);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync pFps->mpaBytesSent = crCalloc(sizeof (pFps->mpaBytesSent[0]) * cPeriods);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync pFps->mpaCalls = crCalloc(sizeof (pFps->mpaCalls[0]) * cPeriods);
* be idle and never call glClear at all. See threadtest.c
for (b=0; b<p->npoints; b++)
#ifdef VBOXCR_LOGFPS
static bool bFpsInited = false;
if (!bFpsInited)
bFpsInited = true;
crDebug("fps: %f, rec Mbps: %.1f, send Mbps: %.1f, cps: %.1f", fps, bps/(1024.0*1024.0), bpsSent/(1024.0*1024.0), cps);
if (!mural) {
* be idle and never call glClear at all. See threadtest.c
CRPoly *p;
tex[0] = 0;
for (a=0; a<CR_MAX_TEXTURE_UNITS; a++)
for (a=0; a<CR_MAX_TEXTURE_UNITS; a++)
for (a=0; a<CR_MAX_TEXTURE_UNITS; a++)
switch(mm)
case GL_PROJECTION:
case GL_MODELVIEW:
if (lighting)
if (fog)
if (tex[0])
if (cull)
if (!blend)
__draw_poly(p);
p = p->next;
if (!blend)
if (blend)
__draw_poly(p);
p = p->next;
if (blend)
switch (mm)
case GL_PROJECTION:
case GL_MODELVIEW:
if (lighting)
if (fog)
if (tex[0])
if (cull)
window = 0;
if (crServerIsRedirectedToFBO())
crServerDispatchFlush(void)
if (crServerIsRedirectedToFBO())
crServerDispatchFinish(void)
if (crServerIsRedirectedToFBO())