• Getting Server Tickrate From Client
    4 replies, posted
Hello! I'm currently making a custom hud for my build server. And i'm trying to display the server tickrate on the hud (to show how much lagg the server is experiensing). I know that running the FrameTime() on the server side will display the tickrate normally (66.6666...). but will only be visable for the server. I heard that someone said if i take the difference between systime and realtime or something it will display the tickrate. however i get a wrong output and im not sure if it was the correct method. I've seen this before on a hud so it is not impossible. Anyone have any idea how this can be done? Thanks!:)
engine.TickInterval
engine.TickInterval gives me: 0.014999999664724 engine.ServerFrameTime give me: 0.015009999275208 0.00049999996554106 I did try both before.
Since engine.TickInterval is the amount of time in seconds inbetween game ticks, you can calculate the tick rate by dividing 1 by the returning value. The example of the wiki page shows this. Even just calculate 1/0.014999999664724 and you'll get 66.66
Oh wow that was quite stupid of me to not think of that. Thank you so much, It works perfect!
Sorry, you need to Log In to post a reply to this thread.