Implement custom rendering framerate for RenderTask

This commit is contained in:
2023-10-01 17:52:01 +03:00
parent d83220aad6
commit a818f39464
2 changed files with 24 additions and 2 deletions

View File

@@ -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>