Jump to content

Are gameplay functions generally called once per frame?


Go to solution Solved by eezstreet,

Recommended Posts

  • Solution

Singleplayer:

ClientThink is run on every NPC (alive or dead), every frame (as defined by sv_fps) as long as it has a BSTATE that can be executed and it's not part of a ROFF. It runs for the player(s) as @@Raz0r describes.

G_RunFrame is done the same way. There is a cgame portion although this gets weird as the cgame portion of the SP DLL uses VM calls (like jamp.exe with its DLLs) and the game portion uses GetGameAPI (like openjk)

Asgarath83 likes this
Link to comment
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...