- started implementing a JSON based serializer. Unfortunately it is far too slow to be of any real use.

This commit is contained in:
Christoph Oelckers 2016-09-18 13:26:34 +02:00
commit 9313a99e12
50 changed files with 16774 additions and 35 deletions

View file

@ -1482,6 +1482,8 @@ void G_AirControlChanged ()
void G_SerializeLevel (FArchive &arc, bool hubLoad)
{
int i = level.totaltime;
unsigned tm = I_MSTime();
Renderer->StartSerialize(arc);
if (arc.IsLoading()) P_DestroyThinkers(hubLoad);
@ -1599,6 +1601,8 @@ void G_SerializeLevel (FArchive &arc, bool hubLoad)
}
}
Renderer->EndSerialize(arc);
unsigned tt = I_MSTime();
Printf("Serialization took %d ms\n", tt - tm);
}
//==========================================================================