Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Measuring server frame time?
Re: Measuring server frame time? [message #492117 is a reply to message #492071] Sat, 01 April 2017 03:42 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

I dont know how useful they are but the engine has values called FrameSeconds and RealFrameSeconds.

Put these in a source file somewhere and access them like any other float variable
REF_DEF2(float, FrameSeconds, 0x00857290, 0x00856478);
REF_DEF2(float, RealFrameSeconds, 0x00857294, 0x0085647C);

You could stick in a Think hook somewhere and see what those variables look like (not sure what the difference between the 2 actually is though)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *wip* renegade coop
Next Topic: Where does the server or client do the always.dat version check?
Goto Forum:
  


Current Time: Thu Feb 06 17:58:02 MST 2025

Total time taken to generate the page: 0.00869 seconds