Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
// Private fixture: observe the ordinary half-second presentation updates.
|
|
modded class ArmaReforgerScripted
|
|
{
|
|
protected float m_ERRLookupProbeTime;
|
|
protected int m_ERRLookupProbeTicks;
|
|
protected bool m_ERRLookupProbeWarm;
|
|
protected bool m_ERRLookupProbeDone;
|
|
protected string m_ERRLookupProbeTitle;
|
|
override void OnUpdate(BaseWorld world, float timeslice)
|
|
{
|
|
super.OnUpdate(world, timeslice);
|
|
if (m_ERRLookupProbeDone || !m_ERRPresentedTerrainHeader) return;
|
|
m_ERRLookupProbeTime += timeslice;
|
|
if (!m_ERRLookupProbeWarm)
|
|
{
|
|
if (m_ERRLookupProbeTime < 2) return;
|
|
m_ERRLookupProbeWarm = true; m_ERRLookupProbeTime = 0;
|
|
m_ERRLookupProbeTitle = GetMissionName();
|
|
PrintFormat("ERR TERRAIN LOOKUP WARM: title=%1; world=%2", m_ERRLookupProbeTitle, GetWorldFile());
|
|
return;
|
|
}
|
|
m_ERRLookupProbeTicks++;
|
|
if (m_ERRLookupProbeTime < 20) return;
|
|
m_ERRLookupProbeDone = true;
|
|
bool unchanged = GetMissionName() == m_ERRLookupProbeTitle;
|
|
bool correct = GetMissionName() == "Co10 Escape Reintroduced - Nogova";
|
|
bool resource = GetMissionHeader().GetHeaderResourceName() == "{469880DFE1B48F95}Missions/Nogova_TerrainTest.conf";
|
|
PrintFormat("ERR TERRAIN LOOKUP COMPLETE: unchanged=%1 correct=%2 resource=%3 frames=%4 elapsed=%5", unchanged, correct, resource, m_ERRLookupProbeTicks, m_ERRLookupProbeTime);
|
|
}
|
|
}
|