ValveSoftware / csgo-demoinfo

CS:GO demo parsing tool
BSD 2-Clause "Simplified" License
483 stars 101 forks source link

How to convert the value of tick to the time of the game ? #11

Closed jacobxy closed 8 years ago

jacobxy commented 8 years ago

When I output the message of "CNETMsg_Tick" , I get the result like this: ---- CNETMsg_Tick (12 bytes) ----------------- tick: 62278 host_computationtime: 3190 host_computationtime_std_deviation: 581 host_framestarttime_std_deviation: 13

So, how to convert the value of tick to the time of the game ?

Traderain commented 8 years ago

Multiply it by 0.015

bugdone commented 8 years ago

Actually multiply by 1/tickrate. You can get the tickrate of the demo from the ServerInfo message.