Hey I’m currently testing my game and I noticed that the CPU time on the microprofiler seems very high for some reason, what could be causing this?
what could gamestepped, deferredthreads and $script mean?
Hey I’m currently testing my game and I noticed that the CPU time on the microprofiler seems very high for some reason, what could be causing this?
what could gamestepped, deferredthreads and $script mean?
Do you have a lot of connections to Stepped?
quite a few:
1st one is in rbxcharactersounds, i guess its needed so it doesnt rlly matter (?)
2nd one is in a viewport frame manager and now that im thinking about it ill rewrite this in a sec
3rd one is a smooth camera script but i cant rewrite it nor remove it as i need the cam to look good
4th one is a camera based rain system so i cant do much about it either
ive also had a heartbeat function with a raycast to check if the player was in a certain location or not. Do you think its the runservice thats causing the lag?
I’m assuming it’s your raycast function because I keep seeing a lot of “FindPartOnRay” which should be a raycast anyways. Probably connecting to it multiple times or it’s just really inefficient
I’d still recommend moving all that other stuff out of stepped though, they should be using RenderStepped (idk about the sound thing though)
ok that helped
thank you, guess i gotta stop using heartbeat and stepped like its nothing everywhere
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.