From: Eunki, Hong Date: Wed, 11 Oct 2023 08:57:35 +0000 (+0900) Subject: [Tizen] Print gl threshold logs as INFO level + Print more swap buffer X-Git-Tag: accepted/tizen/unified/20231031.163528~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db068fa8dd939e58818af047c2b41bb6791f3492;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Print gl threshold logs as INFO level + Print more swap buffer Change-Id: I018404c4525009b3b5f658b57289903aa04ec88f Signed-off-by: Eunki, Hong --- diff --git a/dali/internal/graphics/gles/egl-implementation.cpp b/dali/internal/graphics/gles/egl-implementation.cpp index 6c1257c..b53f1db 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 e4c3b53..6d91719 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); } } }