AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxLoadProgress.h File Reference

loading percentage for map loads. More...

Go to the source code of this file.

Classes

class  cLuxLoadProgress

Enumerations

enum  eLuxLoadPhase {
  eLuxLoadPhase_Prepare , eLuxLoadPhase_Static , eLuxLoadPhase_Entities , eLuxLoadPhase_Setup ,
  eLuxLoadPhase_Enter , eLuxLoadPhase_LastEnum
}

Variables

static const float kLuxLoadPhaseDefaultMs [eLuxLoadPhase_LastEnum] = { 300, 900, 1300, 200, 2200 }
 Typical times (ms) on a first visit, from measured cached loads.

Detailed Description

loading percentage for map loads.

Pure, unit tested in tests/cpp/test_load_progress.cpp.

A map change runs in phases. Two have counters from the engine (static geometry, entities); the others (script compile, setup, the new map's start scripts) do not, so their progress is the time spent against what that phase took the last time this map loaded (or a default on a first visit). Phase shares come from those times too. The shown value never goes backwards and stays below 100 until the load is done.

Definition in file LuxLoadProgress.h.

Enumeration Type Documentation

◆ eLuxLoadPhase

Enumerator
eLuxLoadPhase_Prepare 
eLuxLoadPhase_Static 
eLuxLoadPhase_Entities 
eLuxLoadPhase_Setup 
eLuxLoadPhase_Enter 
eLuxLoadPhase_LastEnum 

Definition at line 13 of file LuxLoadProgress.h.

Variable Documentation

◆ kLuxLoadPhaseDefaultMs

const float kLuxLoadPhaseDefaultMs[eLuxLoadPhase_LastEnum] = { 300, 900, 1300, 200, 2200 }
static

Typical times (ms) on a first visit, from measured cached loads.

Definition at line 24 of file LuxLoadProgress.h.