mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[renderer] Run particle update in renderer update
This has little effect on sw/gl/glsl, but makes it so the particle system isn't run on the CPU (redundantly) for vulkan.
This commit is contained in:
parent
42441e87d4
commit
9349a739db
1 changed files with 2 additions and 1 deletions
|
@ -271,6 +271,8 @@ SCR_UpdateScreen_legacy (transform_t camera, double realtime,
|
|||
void
|
||||
SCR_UpdateScreen (transform_t camera, double realtime, SCR_Func *scr_funcs)
|
||||
{
|
||||
R_RunParticles (r_data->frametime);
|
||||
|
||||
if (scr_skipupdate || !scr_initialized) {
|
||||
return;
|
||||
}
|
||||
|
@ -308,7 +310,6 @@ SCR_UpdateScreen (transform_t camera, double realtime, SCR_Func *scr_funcs)
|
|||
SCR_CalcRefdef ();
|
||||
}
|
||||
|
||||
R_RunParticles (r_data->frametime);
|
||||
R_AnimateLight ();
|
||||
if (scr_scene && scr_scene->worldmodel) {
|
||||
scr_scene->viewleaf = 0;
|
||||
|
|
Loading…
Reference in a new issue