#Troubleshooting freezes with Profiler

1 messages · Page 1 of 1 (latest)

polar nebula
#

I have some issues with understanding the cause of freezes in my game. Every several frames there's a freeze for 2-6 seconds, but when I look into profiler I see some confusing stuff, like UpdateFunction.Invoke() [Invoke], doing nothing? for like 4 seconds. empty or almost empty Update functions in my scripts taking 3 seconds, shadows redraw taking 4, executing render graph for 5 sec. All this is strange because it happens by itself, even if nothing happens in the game, engine decides to do this stuff for unreasonably long time, because in all other frames such things take like 0.05 ms. So what's really going on and what can I do about it?

autumn spear
polar nebula
#

Of course! Here's some examples.

#

Here's a really confusing example. These are two neighboring frames, in both of them there's one function that in frame on left take basically nothing, but in other strangely take 7 seconds. This is a one time thing and it never happened again and nothing happened in that frame, player, RBs and other things stood still.

autumn spear
#

Hmm... Try using deep profiling and also look at the hierarchy view instead of the timeline.

polar nebula
autumn spear
polar nebula
autumn spear
#

Basically, when a thread stops in the middle to let another higher priority thread run instead. This shouldn't happen if you have enough cores for all the high priority threads though.

#

Unless you're running some custom threads with high priorities.

polar nebula
autumn spear
#

Is it a webgl build by any chance?

polar nebula
autumn spear
#

Going to sleep now, but will have a look at any extra info you share in the morning.

polar nebula
#

I... don't think deep profiling should do this...

autumn spear
#

This feels a lot like a hardware problem. Or perhaps your PC being busy with something else at the same time. If check the task manager to make sure.

polar nebula
polar nebula
autumn spear
autumn spear
#

Hm...
The only thing common about all these freezes is that it seems to happen on accessing the C++ side.

#

Any chance you can share the build of the game so that I can test the issue on my pc?

polar nebula
# autumn spear Any chance you can share the build of the game so that I can test the issue on m...

sure thing: https://store.steampowered.com/app/3802540/Stop_The_F_Demo/

The build is on beta testing branch, I will send code you in DMs

Plunge into the adventure of the bowels of a huge scientific and industrial complex, revealing the secrets. Why are you alone? Who is this mysterious voice? Where are all the employees? You will have to answer these questions and many others. However, be vigilant, your curiosity can lead to dangerous unforeseen consequences.…

▶ Play video