1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Tune mesh generation interval and thread count

This commit is contained in:
sfan5 2025-06-23 13:48:47 +02:00
parent 2733df78c4
commit 2d36d32da8
4 changed files with 26 additions and 14 deletions

View file

@ -17,7 +17,7 @@ ScopeProfiler::ScopeProfiler(Profiler *profiler, const std::string &name,
m_time1 = porting::getTime(prec);
}
ScopeProfiler::~ScopeProfiler()
void ScopeProfiler::stop() noexcept
{
if (!m_profiler)
return;
@ -38,6 +38,8 @@ ScopeProfiler::~ScopeProfiler()
m_profiler->max(m_name, duration);
break;
}
m_profiler = nullptr; // don't stop a second time
}
Profiler::Profiler()