[DEBUG] remove some log

This commit is contained in:
Edouard DUPIN 2017-09-26 15:45:46 +02:00
parent 851398b31f
commit 0f14d7341a
3 changed files with 13 additions and 8 deletions

View File

@ -23,6 +23,7 @@
#include <gale/resource/Manager.hpp>
#include <etk/Map.hpp>
#include <echrono/Steady.hpp>
#include <echrono/Time.hpp>
#include <etk/typeInfo.hpp>
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<void(gale::Context& _context)> 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();

View File

@ -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) {

View File

@ -5,6 +5,9 @@
*/
#pragma once
#include <etk/types.hpp>
#include <etk/Stream.hpp>
namespace gale {
enum class orientation {
screenAuto = 0,