Why does E2 works 66 times per second while game itself runs 60 fps #3166
Answered
by
Denneisk
ghostserver10
asked this question in
Q&A
|
I dont know if I am writing this quiestion in correct place, but why does expression2 chips execute code 66 times per second? When making some control stuff it makes control unreliable and weird. And also how does it work 66 times. Like why does it need to run 1 additional tick after 10 ticks |
Answered by
Denneisk
Nov 2, 2024
Replies: 1 comment 6 replies
|
(Moved for not being a bug report) Tickrate is unrelated to framerate and is based on the server settings. By default, a Gmod server runs at 66 ticks per second. That's why E2 also runs at 66 ticks, because it's matching the tickrate of the server you're playing on (in singleplayer this is also 66). |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Server tickrate and framerate are completely unrelated, but hosting a server/playing singleplayer and doing something that reduces your tickrate can reduce your framerate.
Think of it like this: you have a part of the game that handles physics, and a part of the game that handles rendering the game. The part that renders doesn't need to be directly communicating to the part that handles physics, it just need to read the information it produces about the current physical state of the world so it can render that information to the player.
This practice is used in all sorts of games. Minecraft is a popular example.