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:
parent
764cd91879
commit
297a4e2756
7 changed files with 17 additions and 2 deletions
libs/video/renderer
nq/source
qw/source
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -397,3 +397,8 @@ R_ClearState (void)
|
|||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
}
|
||||
|
||||
VISIBLE void
|
||||
D_FlushCaches (void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1151,7 +1151,6 @@ gl_overbright_f (cvar_t *un)
|
|||
VISIBLE void
|
||||
R_ClearState (void)
|
||||
{
|
||||
D_FlushCaches ();
|
||||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
|
|
|
@ -873,7 +873,6 @@ gl_overbright_f (cvar_t *un)
|
|||
VISIBLE void
|
||||
R_ClearState (void)
|
||||
{
|
||||
D_FlushCaches ();
|
||||
R_ClearEfrags ();
|
||||
R_ClearDlights ();
|
||||
R_ClearParticles ();
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -131,6 +131,11 @@ CL_StopPlayback (void)
|
|||
{
|
||||
}
|
||||
|
||||
VISIBLE void
|
||||
D_FlushCaches (void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
IN_ProcessEvents (void)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue