Implement custom rendering framerate for RenderTask
This commit is contained in:
@@ -52,6 +52,8 @@ API_CLASS() class FLAXENGINE_API RenderTask : public ScriptingObject
|
||||
|
||||
private:
|
||||
RenderTask* _prevTask = nullptr;
|
||||
|
||||
float _lastFrameTime = 0.0f;
|
||||
|
||||
public:
|
||||
/// <summary>
|
||||
@@ -70,6 +72,11 @@ public:
|
||||
/// </summary>
|
||||
API_FIELD() int32 Order = 0;
|
||||
|
||||
/// <summary>
|
||||
/// The framerate of the task, or how often the task rendering is performed per second.
|
||||
/// </summary>
|
||||
API_FIELD() int32 RenderFPS = 0;
|
||||
|
||||
/// <summary>
|
||||
/// The amount of frames rendered by this task. It is auto incremented on task drawing.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user