Make model load task priority as low 96/305596/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 5 Feb 2024 08:25:47 +0000 (17:25 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 5 Feb 2024 08:25:47 +0000 (17:25 +0900)
Since gltf model load spend a lots of time, let we make it priority low

Change-Id: I4af0711d74b5836f4c7b039217463e13ce5c5220
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-scene3d/internal/common/model-load-task.cpp

index 562b299..10e0aba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ static constexpr Vector3 Y_DIRECTION(1.0f, -1.0f, 1.0f);
 } // namespace
 
 ModelLoadTask::ModelLoadTask(const std::string& modelUrl, const std::string& resourceDirectoryUrl, CallbackBase* callback)
-: AsyncTask(callback),
+: AsyncTask(callback, AsyncTask::PriorityType::LOW),
   mModelUrl(modelUrl),
   mResourceDirectoryUrl(resourceDirectoryUrl),
   mModelCacheManager(Scene3D::Internal::ModelCacheManager::Get()),