[DEBUG] remove some log
This commit is contained in:
parent
851398b31f
commit
0f14d7341a
@ -23,6 +23,7 @@
|
|||||||
#include <gale/resource/Manager.hpp>
|
#include <gale/resource/Manager.hpp>
|
||||||
#include <etk/Map.hpp>
|
#include <etk/Map.hpp>
|
||||||
#include <echrono/Steady.hpp>
|
#include <echrono/Steady.hpp>
|
||||||
|
#include <echrono/Time.hpp>
|
||||||
#include <etk/typeInfo.hpp>
|
#include <etk/typeInfo.hpp>
|
||||||
ETK_DECLARE_TYPE(gale::Context);
|
ETK_DECLARE_TYPE(gale::Context);
|
||||||
|
|
||||||
@ -145,7 +146,7 @@ void gale::Context::processEvents() {
|
|||||||
//GALE_DEBUG(" ******** Event " << m_msgSystem.count());
|
//GALE_DEBUG(" ******** Event " << m_msgSystem.count());
|
||||||
while (m_msgSystem.count() > 0) {
|
while (m_msgSystem.count() > 0) {
|
||||||
nbEvent++;
|
nbEvent++;
|
||||||
GALE_DEBUG(" [" << nbEvent << "] event ...");
|
//GALE_VERBOSE(" [" << nbEvent << "] event ...");
|
||||||
etk::Function<void(gale::Context& _context)> func;
|
etk::Function<void(gale::Context& _context)> func;
|
||||||
{
|
{
|
||||||
ethread::RecursiveLock lock(m_mutex);
|
ethread::RecursiveLock lock(m_mutex);
|
||||||
@ -622,7 +623,8 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
|||||||
}
|
}
|
||||||
//GALE_VERBOSE("Call draw");
|
//GALE_VERBOSE("Call draw");
|
||||||
echrono::Steady currentTime = echrono::Steady::now();
|
echrono::Steady currentTime = echrono::Steady::now();
|
||||||
//GALE_WARNING("Time = " << currentTime);
|
//echrono::Time currentTime2 = echrono::Time::now();
|
||||||
|
//GALE_WARNING("Time = " << currentTime << " " << currentTime2);
|
||||||
// TODO : Review this ...
|
// TODO : Review this ...
|
||||||
// this is to prevent the multiple display at the a high frequency ...
|
// this is to prevent the multiple display at the a high frequency ...
|
||||||
#if ( !defined(__TARGET_OS__Windows) \
|
#if ( !defined(__TARGET_OS__Windows) \
|
||||||
@ -657,7 +659,7 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
|||||||
*/
|
*/
|
||||||
if (m_application != nullptr) {
|
if (m_application != nullptr) {
|
||||||
// Redraw all needed elements
|
// Redraw all needed elements
|
||||||
GALE_DEBUG("Regenerate Display");
|
//GALE_DEBUG("Regenerate Display");
|
||||||
m_application->onRegenerateDisplay(*this);
|
m_application->onRegenerateDisplay(*this);
|
||||||
needRedraw = m_application->isDrawingNeeded();
|
needRedraw = m_application->isDrawingNeeded();
|
||||||
}
|
}
|
||||||
@ -678,7 +680,7 @@ bool gale::Context::OS_Draw(bool _displayEveryTime) {
|
|||||||
}
|
}
|
||||||
if( needRedraw == true
|
if( needRedraw == true
|
||||||
|| _displayEveryTime == true) {
|
|| _displayEveryTime == true) {
|
||||||
GALE_DEBUG(" ==> real Draw");
|
//GALE_DEBUG(" ==> real Draw");
|
||||||
lockContext();
|
lockContext();
|
||||||
m_resourceManager.updateContext();
|
m_resourceManager.updateContext();
|
||||||
unLockContext();
|
unLockContext();
|
||||||
|
@ -105,14 +105,14 @@ namespace gale {
|
|||||||
if (m_display == true) {
|
if (m_display == true) {
|
||||||
if (m_nbDisplayTime > 0) {
|
if (m_nbDisplayTime > 0) {
|
||||||
GALE_PRINT(m_displayName << " : Active : "
|
GALE_PRINT(m_displayName << " : Active : "
|
||||||
<< m_min << " "
|
<< m_min << " | "
|
||||||
<< m_avg / m_nbDisplayTime << "ms "
|
<< m_avg / m_nbDisplayTime << " | "
|
||||||
<< m_max << " ");
|
<< m_max << " ");
|
||||||
}
|
}
|
||||||
if (m_nbCallTime-m_nbDisplayTime>0) {
|
if (m_nbCallTime-m_nbDisplayTime>0) {
|
||||||
GALE_PRINT(m_displayName << " : idle : "
|
GALE_PRINT(m_displayName << " : idle : "
|
||||||
<< m_min_idle << " "
|
<< m_min_idle << " | "
|
||||||
<< m_avg_idle / (m_nbCallTime-m_nbDisplayTime) << "ms "
|
<< m_avg_idle / (m_nbCallTime-m_nbDisplayTime) << " | "
|
||||||
<< m_max_idle << " ");
|
<< m_max_idle << " ");
|
||||||
}
|
}
|
||||||
if (m_displayFPS == true) {
|
if (m_displayFPS == true) {
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <etk/types.hpp>
|
||||||
|
#include <etk/Stream.hpp>
|
||||||
|
|
||||||
namespace gale {
|
namespace gale {
|
||||||
enum class orientation {
|
enum class orientation {
|
||||||
screenAuto = 0,
|
screenAuto = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user