mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add block 'ambient-occlusion' property
This commit is contained in:
parent
f485ba5e54
commit
71e20ff805
10 changed files with 149 additions and 53 deletions
|
|
@ -200,7 +200,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void enqueueJob(std::shared_ptr<T> job) {
|
||||
void enqueueJob(const std::shared_ptr<T>& job) {
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(jobsMutex);
|
||||
jobs.push(job);
|
||||
|
|
@ -244,6 +244,10 @@ public:
|
|||
update();
|
||||
}
|
||||
}
|
||||
|
||||
uint getWorkersCount() const {
|
||||
return threads.size();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@ namespace timeutil {
|
|||
* ...
|
||||
* }
|
||||
*/
|
||||
class ScopeLogTimer : public Timer{
|
||||
long long scopeid_;
|
||||
public:
|
||||
ScopeLogTimer(long long id);
|
||||
~ScopeLogTimer();
|
||||
class ScopeLogTimer : public Timer {
|
||||
long long scopeid_;
|
||||
public:
|
||||
ScopeLogTimer(long long id);
|
||||
~ScopeLogTimer();
|
||||
};
|
||||
|
||||
inline constexpr float time_value(float hour, float minute, float second) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue