diff --git a/gale/context/Context.cpp b/gale/context/Context.cpp index 689bdec..ed97d19 100644 --- a/gale/context/Context.cpp +++ b/gale/context/Context.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include ETK_DECLARE_TYPE(gale::Context); @@ -145,7 +146,7 @@ void gale::Context::processEvents() { //GALE_DEBUG(" ******** Event " << m_msgSystem.count()); while (m_msgSystem.count() > 0) { nbEvent++; - GALE_DEBUG(" [" << nbEvent << "] event ..."); + //GALE_VERBOSE(" [" << nbEvent << "] event ..."); etk::Function func; { ethread::RecursiveLock lock(m_mutex); @@ -622,7 +623,8 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) { } //GALE_VERBOSE("Call draw"); echrono::Steady currentTime = echrono::Steady::now(); - //GALE_WARNING("Time = " << currentTime); + //echrono::Time currentTime2 = echrono::Time::now(); + //GALE_WARNING("Time = " << currentTime << " " << currentTime2); // TODO : Review this ... // this is to prevent the multiple display at the a high frequency ... #if ( !defined(__TARGET_OS__Windows) \ @@ -657,7 +659,7 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) { */ if (m_application != nullptr) { // Redraw all needed elements - GALE_DEBUG("Regenerate Display"); + //GALE_DEBUG("Regenerate Display"); m_application->onRegenerateDisplay(*this); needRedraw = m_application->isDrawingNeeded(); } @@ -678,7 +680,7 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) { } if( needRedraw == true || _displayEveryTime == true) { - GALE_DEBUG(" ==> real Draw"); + //GALE_DEBUG(" ==> real Draw"); lockContext(); m_resourceManager.updateContext(); unLockContext(); diff --git a/gale/context/Fps.hpp b/gale/context/Fps.hpp index b7a8076..d484e1d 100644 --- a/gale/context/Fps.hpp +++ b/gale/context/Fps.hpp @@ -105,14 +105,14 @@ namespace gale { if (m_display == true) { if (m_nbDisplayTime > 0) { GALE_PRINT(m_displayName << " : Active : " - << m_min << " " - << m_avg / m_nbDisplayTime << "ms " + << m_min << " | " + << m_avg / m_nbDisplayTime << " | " << m_max << " "); } if (m_nbCallTime-m_nbDisplayTime>0) { GALE_PRINT(m_displayName << " : idle : " - << m_min_idle << " " - << m_avg_idle / (m_nbCallTime-m_nbDisplayTime) << "ms " + << m_min_idle << " | " + << m_avg_idle / (m_nbCallTime-m_nbDisplayTime) << " | " << m_max_idle << " "); } if (m_displayFPS == true) { diff --git a/gale/orientation.hpp b/gale/orientation.hpp index cdab1fc..ee5ba04 100644 --- a/gale/orientation.hpp +++ b/gale/orientation.hpp @@ -5,6 +5,9 @@ */ #pragma once +#include +#include + namespace gale { enum class orientation { screenAuto = 0,