VisibilityBasedAnimTickOption not working as expected

Hey everybody thanks for reading. Im trying to improve fps of our game and I found this option Visibility Based Anim Tick. After set it to "Only Tick Pose When Rendered" I almost triplicate. The problem Im facing is it is only working when I look to the opposite way of the skeletal mesh. If something is on the way, even if it is hidding the mesh, it keeps ticking. Check the screen shots (From an unpossessed POV):

279807-visibilitybasedanimtickoption.jpg

2 Likes

I solved this

The solution was this node: https://api.unrealengine.com/INT/BlueprintAPI/Controller/LineOfSightTo/index.html

And the blueprint ended up like this:
https://blueprintue.com/blueprint/d_y28o_4/

3 Likes

years later, this is still an issue and your solution is still the solution. thank you! dramatically increased charactermesh performance…

I’m guessing many will actually want animations off when the BP is not being rendered on screen… for that you’ll want this minor variation (use ‘Was Actor Recently Rendered’). I’m guessing this is lighter weight as well because line of sight uses traces:

1 Like

Hey there

Figured it out
You have no idea how much time I wasted on this

The VisibilityBasedAnimTickOption will not work will if the skeletal mesh doesn’t cast shadows. Turn on shadows for your skeletal meshes :slight_smile: enjoy!