Is there a render frame number/count?

I’m just wondering if there is a way to get the current frame number/count in C++? I’m not talking about the FPS. I’m talking about an actual incremental count of the render frames from when the application started. I would like to know what the current frame number is inside the Tick function of an actor, i.e. is it frame 12549, or frame 12550, etc…

I guess one of the global frame counters in CoreGlobals.h might do the trick for you:

/** Steadily increasing frame counter. */
extern CORE_API uint64 GFrameCounter;

/** Incremented once per frame before the scene is being rendered. In split screen mode this is incremented once for all views (not for each view). */
extern CORE_API uint32 GFrameNumber;

Hope it helps :slight_smile:

1 Like