- Changed the sentinels in the thinker lists into a proper thinker. The old
way wasn't playing well with the write barriers. - Fixed: DFrameBuffer::WriteSavePic needs to fix the canvas in place while using it. - Fixed: The sound system was updated every frame, which is a complete waste of time. Doing it only once each tic is quite sufficient, since nothing really moves between tics, even if the display makes it look otherwise. SVN r799 (trunk)
This commit is contained in:
parent
b3635cfbd8
commit
1e8064306e
8 changed files with 214 additions and 151 deletions
|
|
@ -1825,25 +1825,29 @@ void TryRunTics (void)
|
|||
}
|
||||
|
||||
// run the count tics
|
||||
while (counts--)
|
||||
if (counts > 0)
|
||||
{
|
||||
if (gametic > lowtic)
|
||||
while (counts--)
|
||||
{
|
||||
I_Error ("gametic>lowtic");
|
||||
}
|
||||
if (advancedemo)
|
||||
{
|
||||
D_DoAdvanceDemo ();
|
||||
}
|
||||
if (debugfile) fprintf (debugfile, "run tic %d\n", gametic);
|
||||
C_Ticker ();
|
||||
M_Ticker ();
|
||||
I_GetTime (true);
|
||||
G_Ticker ();
|
||||
GC::CheckGC ();
|
||||
gametic++;
|
||||
if (gametic > lowtic)
|
||||
{
|
||||
I_Error ("gametic>lowtic");
|
||||
}
|
||||
if (advancedemo)
|
||||
{
|
||||
D_DoAdvanceDemo ();
|
||||
}
|
||||
if (debugfile) fprintf (debugfile, "run tic %d\n", gametic);
|
||||
C_Ticker ();
|
||||
M_Ticker ();
|
||||
I_GetTime (true);
|
||||
G_Ticker ();
|
||||
GC::CheckGC ();
|
||||
gametic++;
|
||||
|
||||
NetUpdate (); // check for new console commands
|
||||
NetUpdate (); // check for new console commands
|
||||
}
|
||||
S_UpdateSounds (players[consoleplayer].camera); // move positional sounds
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue