Printing some numbers
This commit is contained in:
+16
-3
@@ -58,13 +58,26 @@ void dd::World::Update(double dt)
|
|||||||
{
|
{
|
||||||
const std::string &type = pair.first;
|
const std::string &type = pair.first;
|
||||||
auto system = pair.second;
|
auto system = pair.second;
|
||||||
|
|
||||||
LOG_INFO("System: %s", type.c_str());
|
LOG_INFO("System: %s", type.c_str());
|
||||||
double timeStamp = glfwGetTime();
|
|
||||||
|
double start = glfwGetTime();
|
||||||
EventBroker->Process(type);
|
EventBroker->Process(type);
|
||||||
double t1 = glfwGetTime() - timeStamp;
|
double stop = glfwGetTime();
|
||||||
LOG_INFO("Events: %d", t1);
|
double t1 = stop - start;
|
||||||
|
LOG_INFO("Events: %f", t1);
|
||||||
|
|
||||||
|
start = glfwGetTime();
|
||||||
system->Update(dt);
|
system->Update(dt);
|
||||||
|
stop = glfwGetTime();
|
||||||
|
double t2 = stop - start;
|
||||||
|
LOG_INFO("Systems: %f", t2);
|
||||||
|
|
||||||
|
start = glfwGetTime();
|
||||||
RecursiveUpdate(system, dt, 0);
|
RecursiveUpdate(system, dt, 0);
|
||||||
|
stop = glfwGetTime();
|
||||||
|
double t3 = stop - start;
|
||||||
|
LOG_INFO("Recursive Systems: %f", t3);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessEntityRemovals();
|
ProcessEntityRemovals();
|
||||||
|
|||||||
Reference in New Issue
Block a user