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:
parent
2733df78c4
commit
2d36d32da8
4 changed files with 26 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue