# Event tick hooked to a line trace and only one "cast to actor" node make my fps fall slowly to unplayable. Is there any alternative to fix this ?

**URL:** <https://forums.unrealengine.com/t/event-tick-hooked-to-a-line-trace-and-only-one-cast-to-actor-node-make-my-fps-fall-slowly-to-unplayable-is-there-any-alternative-to-fix-this/1735725>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [March 7, 2024, 12:07pm UTC](https://forums.unrealengine.com/t/event-tick-hooked-to-a-line-trace-and-only-one-cast-to-actor-node-make-my-fps-fall-slowly-to-unplayable-is-there-any-alternative-to-fix-this/1735725 "2024-03-07T12:07:36Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 7, 2024, 2:02pm UTC](https://forums.unrealengine.com/t/event-tick-hooked-to-a-line-trace-and-only-one-cast-to-actor-node-make-my-fps-fall-slowly-to-unplayable-is-there-any-alternative-to-fix-this/1735725/15 "2024-03-07T14:02:52Z")

</div>

The entire commented logic for this behaviour if we’re using casting:

> [@Moving an object by pointing another object at it](https://forums.unrealengine.com/t/moving-an-object-by-pointing-another-object-at-it/1657869/2):
>
> See if this point_down helps with this point_up_2 particular bit. a standard forward camera trace: You’d use an interface or inheritance if there are more types to handle, ofc. not sure how you want stuff to move, here it’s via a timeline: which results in: the branches in the script prevent it from spamming since we’re tracing on Tick: Hopefully you can adapt it to your needs. It’s a setup similar to this one:

In the Minion, instead of triggering the timeline, the custom event would show / hide its widget / billboard.

---

_[View the full topic](https://forums.unrealengine.com/t/event-tick-hooked-to-a-line-trace-and-only-one-cast-to-actor-node-make-my-fps-fall-slowly-to-unplayable-is-there-any-alternative-to-fix-this/1735725)._
