2016-03-01 15:47:10 +00:00
|
|
|
/*
|
|
|
|
** dthinker.cpp
|
|
|
|
** Implements the base class for almost anything in a level that might think
|
|
|
|
**
|
|
|
|
**---------------------------------------------------------------------------
|
|
|
|
** Copyright 1998-2006 Randy Heit
|
|
|
|
** All rights reserved.
|
|
|
|
**
|
|
|
|
** Redistribution and use in source and binary forms, with or without
|
|
|
|
** modification, are permitted provided that the following conditions
|
|
|
|
** are met:
|
|
|
|
**
|
|
|
|
** 1. Redistributions of source code must retain the above copyright
|
|
|
|
** notice, this list of conditions and the following disclaimer.
|
|
|
|
** 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
** notice, this list of conditions and the following disclaimer in the
|
|
|
|
** documentation and/or other materials provided with the distribution.
|
|
|
|
** 3. The name of the author may not be used to endorse or promote products
|
|
|
|
** derived from this software without specific prior written permission.
|
|
|
|
**
|
|
|
|
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
**---------------------------------------------------------------------------
|
|
|
|
**
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "dthinker.h"
|
|
|
|
#include "stats.h"
|
|
|
|
#include "p_local.h"
|
|
|
|
#include "statnums.h"
|
|
|
|
#include "i_system.h"
|
|
|
|
#include "doomerrors.h"
|
2016-09-20 08:27:53 +00:00
|
|
|
#include "serializer.h"
|
2016-03-01 15:47:10 +00:00
|
|
|
#include "d_player.h"
|
|
|
|
|
|
|
|
|
|
|
|
static cycle_t ThinkCycles;
|
|
|
|
extern cycle_t BotSupportCycles;
|
|
|
|
extern cycle_t ActionCycles;
|
|
|
|
extern int BotWTG;
|
|
|
|
|
|
|
|
IMPLEMENT_CLASS (DThinker)
|
|
|
|
|
|
|
|
DThinker *NextToThink;
|
|
|
|
|
|
|
|
FThinkerList DThinker::Thinkers[MAX_STATNUM+2];
|
|
|
|
FThinkerList DThinker::FreshThinkers[MAX_STATNUM+1];
|
|
|
|
bool DThinker::bSerialOverride = false;
|
|
|
|
|
|
|
|
void FThinkerList::AddTail(DThinker *thinker)
|
|
|
|
{
|
|
|
|
assert(thinker->PrevThinker == NULL && thinker->NextThinker == NULL);
|
|
|
|
assert(!(thinker->ObjectFlags & OF_EuthanizeMe));
|
|
|
|
if (Sentinel == NULL)
|
|
|
|
{
|
|
|
|
Sentinel = new DThinker(DThinker::NO_LINK);
|
|
|
|
Sentinel->ObjectFlags |= OF_Sentinel;
|
|
|
|
Sentinel->NextThinker = Sentinel;
|
|
|
|
Sentinel->PrevThinker = Sentinel;
|
|
|
|
GC::WriteBarrier(Sentinel);
|
|
|
|
}
|
|
|
|
DThinker *tail = Sentinel->PrevThinker;
|
|
|
|
assert(tail->NextThinker == Sentinel);
|
|
|
|
thinker->PrevThinker = tail;
|
|
|
|
thinker->NextThinker = Sentinel;
|
|
|
|
tail->NextThinker = thinker;
|
|
|
|
Sentinel->PrevThinker = thinker;
|
|
|
|
GC::WriteBarrier(thinker, tail);
|
|
|
|
GC::WriteBarrier(thinker, Sentinel);
|
|
|
|
GC::WriteBarrier(tail, thinker);
|
|
|
|
GC::WriteBarrier(Sentinel, thinker);
|
|
|
|
}
|
|
|
|
|
|
|
|
DThinker *FThinkerList::GetHead() const
|
|
|
|
{
|
|
|
|
if (Sentinel == NULL || Sentinel->NextThinker == Sentinel)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
assert(Sentinel->NextThinker->PrevThinker == Sentinel);
|
|
|
|
return Sentinel->NextThinker;
|
|
|
|
}
|
|
|
|
|
|
|
|
DThinker *FThinkerList::GetTail() const
|
|
|
|
{
|
|
|
|
if (Sentinel == NULL || Sentinel->PrevThinker == Sentinel)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
return Sentinel->PrevThinker;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool FThinkerList::IsEmpty() const
|
|
|
|
{
|
|
|
|
return Sentinel == NULL || Sentinel->NextThinker == NULL;
|
|
|
|
}
|
|
|
|
|
2016-09-20 08:27:53 +00:00
|
|
|
void DThinker::SaveList(FSerializer &arc, DThinker *node)
|
2016-03-01 15:47:10 +00:00
|
|
|
{
|
|
|
|
if (node != NULL)
|
|
|
|
{
|
|
|
|
while (!(node->ObjectFlags & OF_Sentinel))
|
|
|
|
{
|
|
|
|
assert(node->NextThinker != NULL && !(node->NextThinker->ObjectFlags & OF_EuthanizeMe));
|
2016-09-20 08:27:53 +00:00
|
|
|
::Serialize<DThinker>(arc, nullptr, node, nullptr);
|
2016-03-01 15:47:10 +00:00
|
|
|
node = node->NextThinker;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DThinker::DThinker (int statnum) throw()
|
|
|
|
{
|
|
|
|
NextThinker = NULL;
|
|
|
|
PrevThinker = NULL;
|
|
|
|
if (bSerialOverride)
|
|
|
|
{ // The serializer will insert us into the right list
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
ObjectFlags |= OF_JustSpawned;
|
|
|
|
if ((unsigned)statnum > MAX_STATNUM)
|
|
|
|
{
|
|
|
|
statnum = MAX_STATNUM;
|
|
|
|
}
|
|
|
|
FreshThinkers[statnum].AddTail (this);
|
|
|
|
}
|
|
|
|
|
|
|
|
DThinker::DThinker(no_link_type foo) throw()
|
|
|
|
{
|
|
|
|
foo; // Avoid unused argument warnings.
|
|
|
|
}
|
|
|
|
|
|
|
|
DThinker::~DThinker ()
|
|
|
|
{
|
|
|
|
assert(NextThinker == NULL && PrevThinker == NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::Destroy ()
|
|
|
|
{
|
|
|
|
assert((NextThinker != NULL && PrevThinker != NULL) ||
|
|
|
|
(NextThinker == NULL && PrevThinker == NULL));
|
|
|
|
if (NextThinker != NULL)
|
|
|
|
{
|
|
|
|
Remove();
|
|
|
|
}
|
|
|
|
Super::Destroy();
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::Remove()
|
|
|
|
{
|
|
|
|
if (this == NextToThink)
|
|
|
|
{
|
|
|
|
NextToThink = NextThinker;
|
|
|
|
}
|
|
|
|
DThinker *prev = PrevThinker;
|
|
|
|
DThinker *next = NextThinker;
|
|
|
|
assert(prev != NULL && next != NULL);
|
|
|
|
assert((ObjectFlags & OF_Sentinel) || (prev != this && next != this));
|
|
|
|
assert(prev->NextThinker == this);
|
|
|
|
assert(next->PrevThinker == this);
|
|
|
|
prev->NextThinker = next;
|
|
|
|
next->PrevThinker = prev;
|
|
|
|
GC::WriteBarrier(prev, next);
|
|
|
|
GC::WriteBarrier(next, prev);
|
|
|
|
NextThinker = NULL;
|
|
|
|
PrevThinker = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::PostBeginPlay ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-09-19 08:34:54 +00:00
|
|
|
void DThinker::PostSerialize()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-03-01 15:47:10 +00:00
|
|
|
DThinker *DThinker::FirstThinker (int statnum)
|
|
|
|
{
|
|
|
|
DThinker *node;
|
|
|
|
|
|
|
|
if ((unsigned)statnum > MAX_STATNUM)
|
|
|
|
{
|
|
|
|
statnum = MAX_STATNUM;
|
|
|
|
}
|
|
|
|
node = Thinkers[statnum].GetHead();
|
|
|
|
if (node == NULL)
|
|
|
|
{
|
|
|
|
node = FreshThinkers[statnum].GetHead();
|
|
|
|
if (node == NULL)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return node;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::ChangeStatNum (int statnum)
|
|
|
|
{
|
|
|
|
FThinkerList *list;
|
|
|
|
|
|
|
|
// This thinker should already be in a list; verify that.
|
|
|
|
assert(NextThinker != NULL && PrevThinker != NULL);
|
|
|
|
|
|
|
|
if ((unsigned)statnum > MAX_STATNUM)
|
|
|
|
{
|
|
|
|
statnum = MAX_STATNUM;
|
|
|
|
}
|
|
|
|
Remove();
|
|
|
|
if ((ObjectFlags & OF_JustSpawned) && statnum >= STAT_FIRST_THINKING)
|
|
|
|
{
|
|
|
|
list = &FreshThinkers[statnum];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
list = &Thinkers[statnum];
|
|
|
|
}
|
|
|
|
list->AddTail(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mark the first thinker of each list
|
|
|
|
void DThinker::MarkRoots()
|
|
|
|
{
|
|
|
|
for (int i = 0; i <= MAX_STATNUM; ++i)
|
|
|
|
{
|
|
|
|
GC::Mark(Thinkers[i].Sentinel);
|
|
|
|
GC::Mark(FreshThinkers[i].Sentinel);
|
|
|
|
}
|
|
|
|
GC::Mark(Thinkers[MAX_STATNUM+1].Sentinel);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Destroy every thinker
|
|
|
|
void DThinker::DestroyAllThinkers ()
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i <= MAX_STATNUM; i++)
|
|
|
|
{
|
|
|
|
if (i != STAT_TRAVELLING)
|
|
|
|
{
|
|
|
|
DestroyThinkersInList (Thinkers[i]);
|
|
|
|
DestroyThinkersInList (FreshThinkers[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DestroyThinkersInList (Thinkers[MAX_STATNUM+1]);
|
|
|
|
GC::FullGC();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Destroy all thinkers except for player-controlled actors
|
|
|
|
// Players are simply removed from the list of thinkers and
|
|
|
|
// will be added back after serialization is complete.
|
|
|
|
void DThinker::DestroyMostThinkers ()
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i <= MAX_STATNUM; i++)
|
|
|
|
{
|
|
|
|
if (i != STAT_TRAVELLING)
|
|
|
|
{
|
|
|
|
DestroyMostThinkersInList (Thinkers[i], i);
|
|
|
|
DestroyMostThinkersInList (FreshThinkers[i], i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
GC::FullGC();
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::DestroyThinkersInList (FThinkerList &list)
|
|
|
|
{
|
|
|
|
if (list.Sentinel != NULL)
|
|
|
|
{
|
|
|
|
for (DThinker *node = list.Sentinel->NextThinker; node != list.Sentinel; node = list.Sentinel->NextThinker)
|
|
|
|
{
|
|
|
|
assert(node != NULL);
|
|
|
|
node->Destroy();
|
|
|
|
}
|
|
|
|
list.Sentinel->Destroy();
|
|
|
|
list.Sentinel = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::DestroyMostThinkersInList (FThinkerList &list, int stat)
|
|
|
|
{
|
|
|
|
if (stat != STAT_PLAYER)
|
|
|
|
{
|
|
|
|
DestroyThinkersInList (list);
|
|
|
|
}
|
|
|
|
else if (list.Sentinel != NULL)
|
|
|
|
{ // If it's a voodoo doll, destroy it. Otherwise, simply remove
|
|
|
|
// it from the list. G_FinishTravel() will find it later from
|
|
|
|
// a players[].mo link and destroy it then, after copying various
|
|
|
|
// information to a new player.
|
|
|
|
for (DThinker *probe = list.Sentinel->NextThinker; probe != list.Sentinel; probe = list.Sentinel->NextThinker)
|
|
|
|
{
|
|
|
|
if (!probe->IsKindOf(RUNTIME_CLASS(APlayerPawn)) || // <- should not happen
|
|
|
|
static_cast<AActor *>(probe)->player == NULL ||
|
|
|
|
static_cast<AActor *>(probe)->player->mo != probe)
|
|
|
|
{
|
|
|
|
probe->Destroy();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
probe->Remove();
|
|
|
|
// Technically, this doesn't need to be in any list now, since
|
|
|
|
// it's only going to be found later and destroyed before ever
|
|
|
|
// needing to tick again, but by moving it to a separate list,
|
|
|
|
// I can keep my debug assertions that all thinkers are either
|
|
|
|
// euthanizing or in a list.
|
|
|
|
Thinkers[MAX_STATNUM+1].AddTail(probe);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::RunThinkers ()
|
|
|
|
{
|
|
|
|
int i, count;
|
|
|
|
|
|
|
|
ThinkCycles.Reset();
|
|
|
|
BotSupportCycles.Reset();
|
|
|
|
ActionCycles.Reset();
|
|
|
|
BotWTG = 0;
|
|
|
|
|
|
|
|
ThinkCycles.Clock();
|
|
|
|
|
|
|
|
// Tick every thinker left from last time
|
|
|
|
for (i = STAT_FIRST_THINKING; i <= MAX_STATNUM; ++i)
|
|
|
|
{
|
|
|
|
TickThinkers (&Thinkers[i], NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Keep ticking the fresh thinkers until there are no new ones.
|
|
|
|
do
|
|
|
|
{
|
|
|
|
count = 0;
|
|
|
|
for (i = STAT_FIRST_THINKING; i <= MAX_STATNUM; ++i)
|
|
|
|
{
|
|
|
|
count += TickThinkers (&FreshThinkers[i], &Thinkers[i]);
|
|
|
|
}
|
|
|
|
} while (count != 0);
|
|
|
|
|
|
|
|
ThinkCycles.Unclock();
|
|
|
|
}
|
|
|
|
|
|
|
|
int DThinker::TickThinkers (FThinkerList *list, FThinkerList *dest)
|
|
|
|
{
|
|
|
|
int count = 0;
|
|
|
|
DThinker *node = list->GetHead();
|
|
|
|
|
|
|
|
if (node == NULL)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
while (node != list->Sentinel)
|
|
|
|
{
|
|
|
|
++count;
|
|
|
|
NextToThink = node->NextThinker;
|
|
|
|
if (node->ObjectFlags & OF_JustSpawned)
|
|
|
|
{
|
|
|
|
// Leave OF_JustSpawn set until after Tick() so the ticker can check it.
|
|
|
|
if (dest != NULL)
|
|
|
|
{ // Move thinker from this list to the destination list
|
|
|
|
node->Remove();
|
|
|
|
dest->AddTail(node);
|
|
|
|
}
|
|
|
|
node->PostBeginPlay();
|
|
|
|
}
|
|
|
|
else if (dest != NULL)
|
|
|
|
{
|
|
|
|
I_Error("There is a thinker in the fresh list that has already ticked.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!(node->ObjectFlags & OF_EuthanizeMe))
|
|
|
|
{ // Only tick thinkers not scheduled for destruction
|
|
|
|
node->Tick();
|
|
|
|
node->ObjectFlags &= ~OF_JustSpawned;
|
|
|
|
GC::CheckGC();
|
|
|
|
}
|
|
|
|
node = NextToThink;
|
|
|
|
}
|
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DThinker::Tick ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
size_t DThinker::PropagateMark()
|
|
|
|
{
|
- removed the sequential processing of JSON objects because the benefit is too small.
After testing with a savegame on ZDCMP2 which is probably the largest map in existence, timing both methods resulted in a speed difference of less than 40 ms (70 vs 110 ms for reading all sectory, linedefs, sidedefs and objects).
This compares to an overall restoration time, including reloading the level, precaching all textures and setting everything up, of approx. 1.2 s, meaning an increase of 3% of the entire reloading time.
That's simply not worth all the negative side effects that may happen with a method that highly depends on proper code construction.
On the other hand, using random access means that a savegame version change is only needed now when the semantics of a field change, but not if some get added or deleted.
- do not I_Error out in the serializer unless caused by a programming error.
It is better to let the serializer finish, collect all the errors and I_Error out when the game is known to be in a stable enough state to allow unwinding.
2016-09-23 12:04:05 +00:00
|
|
|
// Do not choke on partially initialized objects (as happens when loading a savegame fails)
|
|
|
|
if (NextThinker != nullptr || PrevThinker != nullptr)
|
|
|
|
{
|
|
|
|
assert(NextThinker != nullptr && !(NextThinker->ObjectFlags & OF_EuthanizeMe));
|
|
|
|
assert(PrevThinker != nullptr && !(PrevThinker->ObjectFlags & OF_EuthanizeMe));
|
|
|
|
}
|
2016-03-01 15:47:10 +00:00
|
|
|
GC::Mark(NextThinker);
|
|
|
|
GC::Mark(PrevThinker);
|
|
|
|
return Super::PropagateMark();
|
|
|
|
}
|
|
|
|
|
|
|
|
FThinkerIterator::FThinkerIterator (const PClass *type, int statnum)
|
|
|
|
{
|
|
|
|
if ((unsigned)statnum > MAX_STATNUM)
|
|
|
|
{
|
|
|
|
m_Stat = STAT_FIRST_THINKING;
|
|
|
|
m_SearchStats = true;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_Stat = statnum;
|
|
|
|
m_SearchStats = false;
|
|
|
|
}
|
|
|
|
m_ParentType = type;
|
|
|
|
m_CurrThinker = DThinker::Thinkers[m_Stat].GetHead();
|
|
|
|
m_SearchingFresh = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
FThinkerIterator::FThinkerIterator (const PClass *type, int statnum, DThinker *prev)
|
|
|
|
{
|
|
|
|
if ((unsigned)statnum > MAX_STATNUM)
|
|
|
|
{
|
|
|
|
m_Stat = STAT_FIRST_THINKING;
|
|
|
|
m_SearchStats = true;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_Stat = statnum;
|
|
|
|
m_SearchStats = false;
|
|
|
|
}
|
|
|
|
m_ParentType = type;
|
|
|
|
if (prev == NULL || (prev->NextThinker->ObjectFlags & OF_Sentinel))
|
|
|
|
{
|
|
|
|
Reinit();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_CurrThinker = prev->NextThinker;
|
|
|
|
m_SearchingFresh = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void FThinkerIterator::Reinit ()
|
|
|
|
{
|
|
|
|
m_CurrThinker = DThinker::Thinkers[m_Stat].GetHead();
|
|
|
|
m_SearchingFresh = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
DThinker *FThinkerIterator::Next ()
|
|
|
|
{
|
|
|
|
if (m_ParentType == NULL)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
do
|
|
|
|
{
|
|
|
|
do
|
|
|
|
{
|
|
|
|
if (m_CurrThinker != NULL)
|
|
|
|
{
|
|
|
|
while (!(m_CurrThinker->ObjectFlags & OF_Sentinel))
|
|
|
|
{
|
|
|
|
DThinker *thinker = m_CurrThinker;
|
|
|
|
m_CurrThinker = thinker->NextThinker;
|
|
|
|
if (thinker->IsKindOf(m_ParentType))
|
|
|
|
{
|
|
|
|
return thinker;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((m_SearchingFresh = !m_SearchingFresh))
|
|
|
|
{
|
|
|
|
m_CurrThinker = DThinker::FreshThinkers[m_Stat].GetHead();
|
|
|
|
}
|
|
|
|
} while (m_SearchingFresh);
|
|
|
|
if (m_SearchStats)
|
|
|
|
{
|
|
|
|
m_Stat++;
|
|
|
|
if (m_Stat > MAX_STATNUM)
|
|
|
|
{
|
|
|
|
m_Stat = STAT_FIRST_THINKING;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_CurrThinker = DThinker::Thinkers[m_Stat].GetHead();
|
|
|
|
m_SearchingFresh = false;
|
|
|
|
} while (m_SearchStats && m_Stat != STAT_FIRST_THINKING);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
ADD_STAT (think)
|
|
|
|
{
|
|
|
|
FString out;
|
2016-03-10 13:22:18 +00:00
|
|
|
out.Format ("Think time = %04.2f ms, Action = %04.2f ms", ThinkCycles.TimeMS(), ActionCycles.TimeMS());
|
2016-03-01 15:47:10 +00:00
|
|
|
return out;
|
|
|
|
}
|