mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 19:42:10 +00:00
Tune mesh generation interval and thread count
This commit is contained in:
parent
2733df78c4
commit
2d36d32da8
4 changed files with 26 additions and 14 deletions
|
@ -13,6 +13,8 @@
|
|||
#include "threading/mutex_auto_lock.h"
|
||||
#include "util/timetaker.h"
|
||||
#include "util/numeric.h" // paging()
|
||||
/* FIXME: ^ move this to the .cpp file, it's not needed here */
|
||||
#include "util/basic_macros.h"
|
||||
|
||||
// Global profiler
|
||||
class Profiler;
|
||||
|
@ -108,7 +110,12 @@ public:
|
|||
ScopeProfiler(Profiler *profiler, const std::string &name,
|
||||
ScopeProfilerType type = SPT_ADD,
|
||||
TimePrecision precision = PRECISION_MILLI);
|
||||
~ScopeProfiler();
|
||||
inline ~ScopeProfiler() { stop(); }
|
||||
|
||||
// End profiled scope early
|
||||
void stop() noexcept;
|
||||
|
||||
DISABLE_CLASS_COPY(ScopeProfiler)
|
||||
|
||||
private:
|
||||
Profiler *m_profiler = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue