ValveSoftware / csgo-demoinfo

CS:GO demo parsing tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jacobxy opened this issue · comments

commented

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 ?

Multiply it by 0.015

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