This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#pragma once
#include "V8DataModel/DataModelJob.h"
namespace RBX {
class SleepingJob : public DataModelJob
{
private:
rbx::atomic<int> isAwake;
const double desiredFps;
RBX::Time lastWakeTime;
public:
SleepingJob(const char* name, TaskType taskType, bool isPerPlayer,
shared_ptr<RBX::DataModelArbiter> arbiter, RBX::Time::Interval stepBudget,
double desiredFps);
void wake();
void sleep();
virtual RBX::Time::Interval sleepTime(const Stats&);
virtual RBX::TaskScheduler::Job::Error error(const Stats& stats);
};
}