Skip to content

Commit

Permalink
Revert thread priority setup
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey jodon committed Feb 2, 2024
1 parent acd1f0f commit 662313a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ struct thread_context {
#endif
};

#ifdef __3DS__
static int n3ds_thread_priority = 0x30;
#endif

static int activeThreads = 0;
static int activeMutexes = 0;
static int activeEvents = 0;
Expand Down Expand Up @@ -284,10 +280,12 @@ int PltCreateThread(const char* name, ThreadEntry entry, void* context, PLT_THRE
#elif defined(__3DS__)
{
size_t stack_size = 0x40000;
s32 priority = 0x30;
svcGetThreadPriority(&priority, CUR_THREAD_HANDLE);
thread->thread = threadCreate(ThreadProc,
ctx,
stack_size,
n3ds_thread_priority,
priority,
-1,
false);
if (thread->thread == NULL) {
Expand Down Expand Up @@ -496,9 +494,6 @@ int initializePlatform(void) {
return err;
}

#ifdef __3DS__
svcGetThreadPriority(&n3ds_thread_priority, CUR_THREAD_HANDLE);
#endif
enterLowLatencyMode();

return 0;
Expand Down

0 comments on commit 662313a

Please sign in to comment.