PaoloAtRebelpug
New member
Hello there,
I need your help please.
We are trying to optimize the game so that it can run without issues on lower requirements.
This is the scene we use for optimization, every room, structure and robot has a behavior tree for their tasks. The tick is manual on a routine and goes off every 0.1 seconds. We optimized every tree (beside for the workers) in a way that there are only few checks and are based on enum comparisons. For the worker we did the same when he is not working (Running) a specific task.
This below is the profiler for that scene when the game is standalone:
As you can see there are spikes every time the tree goes off, so I am wondering if there is a way to split the trees in two groups, one for the workers and one for everything else with the objective to spread the load. What do you think? How could we achieve that?
Thanks and have a great day,
Paolo
EDIT: I managed to split the trees in two groups! If anybody want to know how to do it is about setting the tick to manual then calling tick(tree) on need
I need your help please.
We are trying to optimize the game so that it can run without issues on lower requirements.
This is the scene we use for optimization, every room, structure and robot has a behavior tree for their tasks. The tick is manual on a routine and goes off every 0.1 seconds. We optimized every tree (beside for the workers) in a way that there are only few checks and are based on enum comparisons. For the worker we did the same when he is not working (Running) a specific task.
This below is the profiler for that scene when the game is standalone:
As you can see there are spikes every time the tree goes off, so I am wondering if there is a way to split the trees in two groups, one for the workers and one for everything else with the objective to spread the load. What do you think? How could we achieve that?
Thanks and have a great day,
Paolo
EDIT: I managed to split the trees in two groups! If anybody want to know how to do it is about setting the tick to manual then calling tick(tree) on need
Last edited: