Skip to content

Commit

Permalink
[Imp] In r15576, resampler table initialization was moved to the time…
Browse files Browse the repository at this point in the history
… the first module is loaded in libopenmpt. This caused a huge performance loss for fuzzing using afl's persistent mode, so the original behaviour is restored for fuzzer builds now.

git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20690 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Apr 30, 2024
1 parent dd4b779 commit 28a8302
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion soundlib/Resampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ OPENMPT_NAMESPACE_BEGIN
// Caching gets triggered via a global object that primes the cache during
// construction.
// This is only really useful with MPT_RESAMPLER_TABLES_CACHED.
//#define MPT_RESAMPLER_TABLES_CACHED_ONSTARTUP
#ifdef MPT_BUILD_FUZZER
#define MPT_RESAMPLER_TABLES_CACHED_ONSTARTUP
#endif

#endif // LIBOPENMPT_BUILD

Expand Down

0 comments on commit 28a8302

Please sign in to comment.