[add] additional_Timer
This commit is contained in:
@@ -53,4 +53,8 @@ namespace Client
|
||||
_float fMaxExprience{};
|
||||
_int iGold{};
|
||||
}UNITINFO;
|
||||
typedef struct tagLockOnInfo {
|
||||
CUnit* pUnit = { nullptr };
|
||||
class CMapElement_Interactable* pInteractive = { nullptr };
|
||||
}LOCKON_INFO;
|
||||
};
|
||||
|
||||
@@ -320,6 +320,9 @@ void CGameInstance::Compute_FrameCount()
|
||||
m_fTimer_LateUpdate = Get_TimeDelta(TEXT("Timer_LateUpdate"));
|
||||
m_fTimer_DrawCall = Get_TimeDelta(TEXT("Timer_DrawCall"));
|
||||
m_fTimer_Present = Get_TimeDelta(TEXT("Timer_Present"));
|
||||
m_fTimer_Picking = Get_TimeDelta(TEXT("Timer_Picking"));
|
||||
m_fTimer_PhysX = Get_TimeDelta(TEXT("Timer_PhysX"));
|
||||
m_fTimer_Level = Get_TimeDelta(TEXT("Timer_Level"));
|
||||
m_fTimer_FrameCount = Get_TimeDelta(TEXT("Timer_FrameCount"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
@@ -331,7 +334,10 @@ void CGameInstance::Present_TimeCost() const
|
||||
+ m_fTimer_Update
|
||||
+ m_fTimer_LateUpdate
|
||||
+ m_fTimer_DrawCall
|
||||
+ m_fTimer_Present;
|
||||
+ m_fTimer_Present
|
||||
+ m_fTimer_Picking
|
||||
+ m_fTimer_PhysX
|
||||
+ m_fTimer_Level;
|
||||
|
||||
GUI::PushItemWidth(80);
|
||||
GUI::Begin("Previous_Frame_Timer");
|
||||
@@ -352,6 +358,21 @@ void CGameInstance::Present_TimeCost() const
|
||||
GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x);
|
||||
GUI::Text("Late_Update %d", int(m_fTimer_LateUpdate / fTotal * 100.f));
|
||||
}
|
||||
{
|
||||
GUI::ProgressBar(m_fTimer_Picking / fTotal, ImVec2(200.f, 0.f));
|
||||
GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x);
|
||||
GUI::Text("Picking %d", int(m_fTimer_Picking / fTotal * 100.f));
|
||||
}
|
||||
{
|
||||
GUI::ProgressBar(m_fTimer_PhysX / fTotal, ImVec2(200.f, 0.f));
|
||||
GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x);
|
||||
GUI::Text("PhysX %d", int(m_fTimer_PhysX / fTotal * 100.f));
|
||||
}
|
||||
{
|
||||
GUI::ProgressBar(m_fTimer_Level / fTotal, ImVec2(200.f, 0.f));
|
||||
GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x);
|
||||
GUI::Text("Level %d", int(m_fTimer_Level / fTotal * 100.f));
|
||||
}
|
||||
{
|
||||
GUI::ProgressBar(m_fTimer_DrawCall / fTotal, ImVec2(200.f, 0.f));
|
||||
GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x);
|
||||
|
||||
@@ -305,6 +305,9 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
_float m_fTimer_LateUpdate = { 0.f };
|
||||
_float m_fTimer_DrawCall = { 0.f };
|
||||
_float m_fTimer_Present = { 0.f };
|
||||
_float m_fTimer_Picking = { 0.f };
|
||||
_float m_fTimer_PhysX = { 0.f };
|
||||
_float m_fTimer_Level = { 0.f };
|
||||
_float m_fTimer_FrameCount = { 0.f };
|
||||
|
||||
_float2 m_vViewPortSize = {};
|
||||
|
||||
Reference in New Issue
Block a user