mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Disable script profiler in release build
This commit is contained in:
@@ -394,7 +394,7 @@ public:
|
||||
}
|
||||
|
||||
ScriptValueP eval(Context& ctx, bool openScope) const override {
|
||||
#if USE_SCRIPT_PROFILING
|
||||
#if USE_SCRIPT_PROFILING && 0 // this is very slow
|
||||
Timer timer;
|
||||
{
|
||||
// execute a
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <script/script.hpp>
|
||||
#include <script/context.hpp>
|
||||
|
||||
#ifndef USE_SCRIPT_PROFILING
|
||||
#if !defined(USE_SCRIPT_PROFILING) && defined(_DEBUG)
|
||||
#define USE_SCRIPT_PROFILING 1
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user