#Guys Ive been having this random lag

1 messages · Page 1 of 1 (latest)

hexed trellis
#

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

worldly kindle
#

does any of your code mess with the physics system, such as by manually asking it to simulate a step?

hexed trellis
#

but it works perfectly except for that random spike

worldly kindle
#

that doesn't answer my qusetion

hexed trellis
#

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

worldly kindle
#

you'd be calling Physics.Simulate()

hexed trellis
#

is that spike caused because of the physics?

worldly kindle
#

well, yes, but the question is why that's happening

hexed trellis
#

this is in normal circumstances

hexed trellis
#

does disabling a script let me narrow down the issue?

hexed trellis
#

as in, its showing physics but where is that etc

worldly kindle
#

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

hexed trellis
hexed trellis
#

this is what its showing when i expand