Move resetting accumulatedFrameTime in AdminLogSystem to the start of the method
This commit is contained in:
@@ -176,6 +176,8 @@ public partial class AdminLogSystem : SharedAdminLogSystem
|
|||||||
|
|
||||||
private async Task SaveLogs()
|
private async Task SaveLogs()
|
||||||
{
|
{
|
||||||
|
_accumulatedFrameTime = 0;
|
||||||
|
|
||||||
// TODO ADMIN LOGS array pool
|
// TODO ADMIN LOGS array pool
|
||||||
var copy = new List<QueuedLog>(_logQueue.Count + _preRoundLogQueue.Count);
|
var copy = new List<QueuedLog>(_logQueue.Count + _preRoundLogQueue.Count);
|
||||||
|
|
||||||
@@ -200,8 +202,6 @@ public partial class AdminLogSystem : SharedAdminLogSystem
|
|||||||
_preRoundLogQueue.Clear();
|
_preRoundLogQueue.Clear();
|
||||||
PreRoundQueue.Set(0);
|
PreRoundQueue.Set(0);
|
||||||
|
|
||||||
_accumulatedFrameTime = 0;
|
|
||||||
|
|
||||||
// ship the logs to Azkaban
|
// ship the logs to Azkaban
|
||||||
var task = Task.Run(async () =>
|
var task = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user