#RunService Question
1 messages · Page 1 of 1 (latest)
Each runservice event is called once per frame
The difference between things like .Heartbeat and .RenderStepped is when durring the frame they are called
this don't answer my question
I mean there are not different framerate, your framerate is your framerate
wdym in general
i meant in a server script
Run service events on the server will be caled once every frame on the server
It is unrelated to the client framerate
also on the server I think only Heartbeat can be used
if the server is running at 60fps
and a player is running at 30fps
and im running a server script that does something
🤔
would the player be lagging behind because their fps is half of the servers
yes?
Elaborate on what you mean by that
I mean if server is 60fps but my client is 10fps Im going to be laggy asf
lets say the server is trying to add velocity to an object
if im a player running at 30fps
would the velocity added be half of what the server is trying to add
no
Im pretty sure they are handled with delta time so no
If your applying a fixed impulse every frame, then yes. The solution to this is to multiply the force by the delta time (time between frames) to normalize the force over time
Wonderful video on the topic
https://www.youtube.com/watch?v=yGhfUcPjXuE
DeltaTime. This video is all about that mysterious variable that oh so many game developers seem to struggle with. How to use DeltaTime correclty? I got the answers and hope this video will help to deepen your understanding about how to make frame rate independent video games.
0:00 - Intro
0:34 - Creating The Illusion of Motion
1:11 - Simple Li...
ok i understand