Skip to content

Commit

Permalink
fix(rootless): disable benchmarking to avoid performance issues and c…
Browse files Browse the repository at this point in the history
…rashes for now.

I'll try to add a toggle & manual benchmarking with caching. The rootless builds are already very fragile; benchmarking in background is causing severe penalties by Android for userspace programs.
  • Loading branch information
timschneeb committed Jul 17, 2023
1 parent d550658 commit 6304fdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/cpp/libjamesdsp
3 changes: 2 additions & 1 deletion app/src/main/cpp/libjamesdsp-wrapper/JamesDspWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ Java_me_timschneeberger_rootlessjamesdsp_interop_JamesDspWrapper_alloc(JNIEnv *e
return 1;
}

JamesDSPGlobalMemoryAllocation();
bool do_benchmark = 0;
JamesDSPGlobalMemoryAllocation(do_benchmark);
JamesDSPInit(_dsp, 128, 48000);

if(!JamesDSPGetMutexStatus(_dsp))
Expand Down

0 comments on commit 6304fdc

Please sign in to comment.