From db068fa8dd939e58818af047c2b41bb6791f3492 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 11 Oct 2023 17:57:35 +0900 Subject: [PATCH] [Tizen] Print gl threshold logs as INFO level + Print more swap buffer Change-Id: I018404c4525009b3b5f658b57289903aa04ec88f Signed-off-by: Eunki, Hong --- dali/internal/graphics/gles/egl-implementation.cpp | 12 ++++++++---- dali/internal/graphics/gles/gl-implementation.h | 10 +++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/dali/internal/graphics/gles/egl-implementation.cpp b/dali/internal/graphics/gles/egl-implementation.cpp index 6c1257c48..b53f1db7f 100644 --- a/dali/internal/graphics/gles/egl-implementation.cpp +++ b/dali/internal/graphics/gles/egl-implementation.cpp @@ -37,7 +37,11 @@ namespace { -const uint32_t THRESHOLD_SWAPBUFFER_COUNT = 5; +#ifndef DALI_PROFILE_UBUNTU +const uint32_t THRESHOLD_SWAPBUFFER_COUNT = 20; +#else +const uint32_t THRESHOLD_SWAPBUFFER_COUNT = 5; +#endif const uint32_t CHECK_EXTENSION_NUMBER = 4; const uint32_t EGL_VERSION_SUPPORT_SURFACELESS_CONTEXT = 15; const char* EGL_KHR_SURFACELESS_CONTEXT = "EGL_KHR_surfaceless_context"; @@ -429,7 +433,7 @@ void EglImplementation::SwapBuffers(EGLSurface& eglSurface) endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("eglSwapBuffers takes long time! [%u ms]\n", endTime - startTime); + DALI_LOG_RELEASE_INFO("eglSwapBuffers takes long time! [%u ms]\n", endTime - startTime); } } } @@ -456,7 +460,7 @@ EGLint EglImplementation::GetBufferAge(EGLSurface& eglSurface) const endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("eglQuerySurface takes long time! [%u ms]\n", endTime - startTime); + DALI_LOG_RELEASE_INFO("eglQuerySurface takes long time! [%u ms]\n", endTime - startTime); } } return age; @@ -523,7 +527,7 @@ void EglImplementation::SwapBuffers(EGLSurface& eglSurface, const std::vector mLogThreshold) { - DALI_LOG_DEBUG_INFO("eglSwapBuffersWithDamageKHR takes long time! [%u ms]\n", endTime - startTime); + DALI_LOG_RELEASE_INFO("eglSwapBuffersWithDamageKHR takes long time! [%u ms]\n", endTime - startTime); } } } diff --git a/dali/internal/graphics/gles/gl-implementation.h b/dali/internal/graphics/gles/gl-implementation.h index e4c3b53f6..6d9171916 100644 --- a/dali/internal/graphics/gles/gl-implementation.h +++ b/dali/internal/graphics/gles/gl-implementation.h @@ -372,7 +372,7 @@ public: endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("glClear takes long time! [%u ms]\n", endTime - startTime); + DALI_LOG_RELEASE_INFO("glClear takes long time! [%u ms]\n", endTime - startTime); } } } @@ -417,7 +417,7 @@ public: endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("glCompressedTexImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); + DALI_LOG_RELEASE_INFO("glCompressedTexImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); } } } @@ -437,7 +437,7 @@ public: endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("glCompressedTexSubImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); + DALI_LOG_RELEASE_INFO("glCompressedTexSubImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); } } } @@ -867,7 +867,7 @@ public: endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("glTexImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); + DALI_LOG_RELEASE_INFO("glTexImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); } } } @@ -907,7 +907,7 @@ public: endTime = TimeService::GetMilliSeconds(); if(endTime - startTime > mLogThreshold) { - DALI_LOG_DEBUG_INFO("glTexSubImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); + DALI_LOG_RELEASE_INFO("glTexSubImage2D takes long time! [%u ms] size : %u x %u\n", endTime - startTime, width, height); } } } -- 2.34.1