Merge pull request #380 from SpicyGangjeong/Develope

[Follow]
This commit is contained in:
qordlsgur
2025-12-09 16:40:55 +09:00
committed by GitHub
7 changed files with 44 additions and 7 deletions
@@ -83,6 +83,15 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_Present")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_Picking")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_PhysX")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_Level")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_FrameCount")))) {
return E_FAIL;
}
+3 -3
View File
@@ -130,10 +130,10 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject, void* pArg)
{ /* 대상 위치 지정 */
CUnit* pTargetUnit = m_pInfoInstance->Get_LockOnUnit();
if (nullptr != pTargetUnit) {
m_pInfoInstance->Get_LockOnInfo(m_Info);
if (nullptr != m_Info.pUnit) {
XMStoreFloat4(&m_vTargetPos, pTargetUnit->Get_LockOnPos());
XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
}
+3 -3
View File
@@ -148,10 +148,10 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
{ /* 대상 위치 지정 */
CUnit* pTargetUnit = m_pInfoInstance->Get_LockOnUnit();
if (nullptr != pTargetUnit) {
m_pInfoInstance->Get_LockOnInfo(m_Info);
if (nullptr != m_Info.pUnit) {
XMStoreFloat4(&m_vTargetPos, pTargetUnit->Get_LockOnPos());
XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
}
@@ -80,6 +80,15 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_Present")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_Picking")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_PhysX")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_Level")))) {
return E_FAIL;
}
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_FrameCount")))) {
return E_FAIL;
}
@@ -1,4 +1,4 @@
#include "pch.h"
#include "pch.h"
#include "Level_Manager.h"
#include "GameInstance.h"
@@ -52,11 +52,18 @@ _uint CLevel_Manager::Get_NextLevelID()
void CLevel_Manager::Update(_float fTimeDelta)
{
#ifdef _DEBUG
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Level"));
#endif // _DEBUG
if (nullptr == m_pCurrentLevel){
return;
}
m_pCurrentLevel->Update(fTimeDelta);
#ifdef _DEBUG
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Level"));
#endif // _DEBUG
}
HRESULT CLevel_Manager::Render()
@@ -389,6 +389,9 @@ void CPhysX_Manager::Update_Kinematic()
void CPhysX_Manager::Update(_float fTimeDelta)
{
#ifdef _DEBUG
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PhysX"));
#endif // _DEBUG
if (nullptr == m_pScene) {
return;
}
@@ -403,6 +406,9 @@ void CPhysX_Manager::Update(_float fTimeDelta)
Update_Dynamic_ActiveActors();
//Update_Dynamic_AllActors();
}
#ifdef _DEBUG
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PhysX"));
#endif // _DEBUG
}
void CPhysX_Manager::Update_Dynamic_ActiveActors()
{
@@ -45,7 +45,13 @@ HRESULT CPicking::Initialize(HWND hWnd, _uint iSizeX, _uint iSizeY)
void CPicking::Update()
{
#ifdef _DEBUG
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Picking"));
#endif // _DEBUG
m_pGameInstance->Copy_RenderTarget(TEXT("Target_Depth"), m_pTexture2D);
#ifdef _DEBUG
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Picking"));
#endif // _DEBUG
}
_bool CPicking::isPicking(_float3* pOut)
{