# How bad is raytracing for performance? Any better alternative?

**URL:** <https://forums.unrealengine.com/t/how-bad-is-raytracing-for-performance-any-better-alternative/1269688>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 23, 2023, 9:14am UTC](https://forums.unrealengine.com/t/how-bad-is-raytracing-for-performance-any-better-alternative/1269688 "2023-08-23T09:14:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [August 23, 2023, 10:05am UTC](https://forums.unrealengine.com/t/how-bad-is-raytracing-for-performance-any-better-alternative/1269688/3 "2023-08-23T10:05:35Z")

</div>

> [@carmanfer](#):
>
> If I have ‘n’ characters this would be very expensive, so I was thinking what other alternatives are there?

Why do you think it’s expensive? Also, you can run it 10x per second rather than 60 - it will be unnoticeable. But, as above, having a small collision volume in front of a character that adds / removes (unique) entities to / from an array on overlap is not a bad idea at all.

Sounds somewhat similar to this, it does not even use an array:

> [@Third person crosshair object highlight troubles](https://forums.unrealengine.com/t/third-person-crosshair-object-highlight-troubles/252041/7):
>
> Do tell how it goes. This can be set up with very little ticking, actually. You could even line trace just a couple of times per second, and the player wouldn’t notice. But this particular ticking is something I wouldn’t worry about. @ConvenientBox How close is this to what you’re trying to accomplish?

The setup is further down in the thread. Would that work for you?

---

_[View the full topic](https://forums.unrealengine.com/t/how-bad-is-raytracing-for-performance-any-better-alternative/1269688)._
