Skip to content

Commit

Permalink
UPBGE: Removed useless BeginFrame and EndFrame physics environment fu…
Browse files Browse the repository at this point in the history
…nctions.
  • Loading branch information
panzergame committed Aug 30, 2017
1 parent 2e39bcc commit 96c9ab5
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 26 deletions.
3 changes: 0 additions & 3 deletions source/gameengine/Ketsji/KX_KetsjiEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,6 @@ bool KX_KetsjiEngine::NextFrame()
#endif
KX_SetActiveScene(scene);

scene->GetPhysicsEnvironment()->EndFrame();

// Process sensors, and controllers
m_logger.StartLog(tc_logic, m_kxsystem->GetTimeInSeconds());
scene->LogicBeginFrame(m_frameTime, framestep);
Expand All @@ -423,7 +421,6 @@ bool KX_KetsjiEngine::NextFrame()
scene->UpdateParents(m_frameTime);

m_logger.StartLog(tc_physics, m_kxsystem->GetTimeInSeconds());
scene->GetPhysicsEnvironment()->BeginFrame();

// Perform physics calculations on the scene. This can involve
// many iterations of the physics solver.
Expand Down
4 changes: 0 additions & 4 deletions source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -703,10 +703,6 @@ void CcdPhysicsEnvironment::UpdateCcdPhysicsControllerShape(CcdShapeConstruction
}
}

void CcdPhysicsEnvironment::BeginFrame()
{
}

void CcdPhysicsEnvironment::DebugDrawWorld()
{
if (m_dynamicsWorld->getDebugDrawer() && m_dynamicsWorld->getDebugDrawer()->getDebugMode() > 0)
Expand Down
5 changes: 0 additions & 5 deletions source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ class CcdPhysicsEnvironment : public PHY_IPhysicsEnvironment
{
return m_numTimeSubSteps;
}

virtual void BeginFrame();
virtual void EndFrame()
{
}
/// Perform an integration step of duration 'timeStep'.
virtual bool ProceedDeltaTime(double curTime, float timeStep, float interval);

Expand Down
2 changes: 0 additions & 2 deletions source/gameengine/Physics/Common/PHY_IPhysicsEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ class PHY_IPhysicsEnvironment
virtual ~PHY_IPhysicsEnvironment()
{
}
virtual void BeginFrame() = 0;
virtual void EndFrame() = 0;
/// Perform an integration step of duration 'timeStep'.
virtual bool ProceedDeltaTime(double curTime, float timeStep, float interval) = 0;
/// draw debug lines (make sure to call this during the render phase, otherwise lines are not drawn properly)
Expand Down
10 changes: 0 additions & 10 deletions source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ DummyPhysicsEnvironment::~DummyPhysicsEnvironment()
//destroy physicsengine data
}

void DummyPhysicsEnvironment::BeginFrame()
{
// beginning of logic frame: apply forces
}

void DummyPhysicsEnvironment::EndFrame()
{
// end of logic frame: clear forces
}

bool DummyPhysicsEnvironment::ProceedDeltaTime(double curTime, float timeStep, float interval)
{
//step physics simulation, typically perform
Expand Down
2 changes: 0 additions & 2 deletions source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class DummyPhysicsEnvironment : public PHY_IPhysicsEnvironment
public:
DummyPhysicsEnvironment ();
virtual ~DummyPhysicsEnvironment ();
virtual void BeginFrame();
virtual void EndFrame();
// Perform an integration step of duration 'timeStep'.
virtual bool ProceedDeltaTime(double curTime, float timeStep, float interval);
virtual void SetFixedTimeStep(bool useFixedTimeStep, float fixedTimeStep);
Expand Down

0 comments on commit 96c9ab5

Please sign in to comment.