0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-21 18:01:15 +00:00

Put the D_FlushCaches mess back.

It turns out that when it is called is highly timing sensitive :(
However, the rest of R_ClearState remains.
This commit is contained in:
Bill Currie 2012-01-05 15:50:20 +09:00
parent 764cd91879
commit 297a4e2756
7 changed files with 17 additions and 2 deletions
libs/video/renderer
nq/source
qw/source

View file

@ -256,3 +256,8 @@ R_TimeRefresh_f (void)
time = stop - start;
Sys_MaskPrintf (SYS_DEV, "%f seconds (%f fps)\n", time, 128 / time);
}
VISIBLE void
D_FlushCaches (void)
{
}

View file

@ -397,3 +397,8 @@ R_ClearState (void)
R_ClearDlights ();
R_ClearParticles ();
}
VISIBLE void
D_FlushCaches (void)
{
}

View file

@ -1151,7 +1151,6 @@ gl_overbright_f (cvar_t *un)
VISIBLE void
R_ClearState (void)
{
D_FlushCaches ();
R_ClearEfrags ();
R_ClearDlights ();
R_ClearParticles ();

View file

@ -873,7 +873,6 @@ gl_overbright_f (cvar_t *un)
VISIBLE void
R_ClearState (void)
{
D_FlushCaches ();
R_ClearEfrags ();
R_ClearDlights ();
R_ClearParticles ();

View file

@ -496,6 +496,7 @@ void
Host_ClearMemory (void)
{
Sys_MaskPrintf (SYS_DEV, "Clearing memory\n");
D_FlushCaches ();
Mod_ClearAll ();
if (host_hunklevel)
Hunk_FreeToLowMark (host_hunklevel);

View file

@ -131,6 +131,11 @@ CL_StopPlayback (void)
{
}
VISIBLE void
D_FlushCaches (void)
{
}
void
IN_ProcessEvents (void)
{

View file

@ -413,6 +413,7 @@ CL_ClearState (void)
CL_Init_Entity (&cl.viewent);
Sys_MaskPrintf (SYS_DEV, "Clearing memory\n");
D_FlushCaches ();
Mod_ClearAll ();
if (host_hunklevel) // FIXME: check this...
Hunk_FreeToLowMark (host_hunklevel);