Enhance texture management and profiling in GX thread; add reinitialization flag and optimize consumer behavior

This commit is contained in:
iChris4 committed 2026-09-20 17:10:00 +02:00
1 parent 6a1641e0b7
commit c4c7078afc
5 files changed
+148 -20

No files matched your search

+4
View File
@@ -28,6 +28,7 @@
#include "gfx/pipeline_cache.hpp"
#endif
#if defined(__ANDROID__)
#include <pthread.h>
#include <unistd.h>
#endif
#include "system_info.hpp"
@@ -355,6 +356,9 @@ void frame_worker_main() noexcept {
}
#if defined(__ANDROID__)
g_frameWorkerNativeThreadId.store(static_cast<uint32_t>(gettid()), std::memory_order_release);
// A thread inherits its creator's name, and the producer that starts this
// worker may itself be a named thread; profiles should tell the two apart.
pthread_setname_np(pthread_self(), "aurora worker");
#endif
#ifdef AURORA_ENABLE_GX