#Guys Ive been having this random lag
1 messages · Page 1 of 1 (latest)
I can see a random spike in FPS and upon pressing it shows 8 processes of physics but I dont know what might be causing this
does any of your code mess with the physics system, such as by manually asking it to simulate a step?
my movement code for the player uses rigidbodies to move
but it works perfectly except for that random spike
that doesn't answer my qusetion
sorry im new could you explain what you mean in baby terms 😭
I do have some logic to be able to go up steps if thats what you mean
you would know if you were doing this
you'd be calling Physics.Simulate()
is that spike caused because of the physics?
well, yes, but the question is why that's happening
this is in normal circumstances
I use physics only for character movement
does disabling a script let me narrow down the issue?
does the profiler reference scripts?
as in, its showing physics but where is that etc
disabling scripts could help, yes, if it winds up preventing the bad behavior
but if you are not calling Physics.Simulate manually, then I'm not sure why you'd see so many physics updates happening at once
you should ask #⚛️┃physics about it
yeah im not simulating anything so im not sure 😦
this is what its showing when i expand