# "The actor is so big that it creates a pre-shadow and there would be a loss of performance"(Be cast shadow has set to false)"

**URL:** <https://forums.unrealengine.com/t/the-actor-is-so-big-that-it-creates-a-pre-shadow-and-there-would-be-a-loss-of-performance-be-cast-shadow-has-set-to-false/460536>\
**Category:** Asset Creation\
**Tags:** cascade-shadow, no-shadows, unreal-engine, question, static-shadows\
**Created:** [January 13, 2020, 9:34pm UTC](https://forums.unrealengine.com/t/the-actor-is-so-big-that-it-creates-a-pre-shadow-and-there-would-be-a-loss-of-performance-be-cast-shadow-has-set-to-false/460536 "2020-01-13T21:34:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [January 13, 2020, 9:34pm UTC](https://forums.unrealengine.com/t/the-actor-is-so-big-that-it-creates-a-pre-shadow-and-there-would-be-a-loss-of-performance-be-cast-shadow-has-set-to-false/460536/1 "2020-01-13T21:34:27Z")

</div>

I am working with a very large static mesh (spacecraft) and its shadow was working properly and performance was great, until it suddenly happens when I open the editor again and in the note output this message (which is in the title) appears, so the shadows are not cast. Is it possible to bypass the graphics engine and delete the parameter in the source code that automatically deactivates shadows?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b58cf9e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b58cf9e8](https://forums.unrealengine.com/u/anonymous_user_b58cf9e8)\
**Post date:** [January 13, 2020, 9:47pm UTC](https://forums.unrealengine.com/t/the-actor-is-so-big-that-it-creates-a-pre-shadow-and-there-would-be-a-loss-of-performance-be-cast-shadow-has-set-to-false/460536/2 "2020-01-13T21:47:55Z")

</div>

This issue is caused when using movable meshes that are very large causing the entire scene to have to be re-rendered into the preshadow depth map. I don’t believe that there is a way to disable the error.

Your best bet is to break your mesh up into smaller pieces or reduce the size of the mesh itstelf.

See the following for more info:

> **[Large actor receives a pre-shadow and will cause an extreme performance hit](https://forums.unrealengine.com/questions/3438/large-actor-receives-a-pre-shadow-and-will-cause-a.html)**
>
> The strategy game I’m working on has a lot of “large” (in Unreal units) actors although they’re relatively light in terms of poly and material counts. Regardless, when building lighting I have two actors in particular that generate the error: ...

---

<div class="post-metadata">

**Author:** ![presto423](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@presto423](https://forums.unrealengine.com/u/presto423)\
**Post date:** [January 13, 2020, 10:19pm UTC](https://forums.unrealengine.com/t/the-actor-is-so-big-that-it-creates-a-pre-shadow-and-there-would-be-a-loss-of-performance-be-cast-shadow-has-set-to-false/460536/3 "2020-01-13T22:19:40Z")

</div>

I had this exact same error in a basic level, and it was referencing a floor and 4 walls that were not that big, like the width of a large house for the walls and the width/length of 4 large houses for the floor. Plus, I even disabled cast shadows on the floor. How I got rid of the error message is setting the meshes to stationary, I think. It may require also setting one or more of the lights to stationary too. But any time I switch the meshes or the lights to dynamic, the error occurs again. It should be a warning w/o the turning off of the shadow render.

---

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [January 13, 2020, 11:00pm UTC](https://forums.unrealengine.com/t/the-actor-is-so-big-that-it-creates-a-pre-shadow-and-there-would-be-a-loss-of-performance-be-cast-shadow-has-set-to-false/460536/4 "2020-01-13T23:00:46Z")

</div>

It didn’t help, it looks like I’ll have to export the static mesh to 3dmax and redo the light mapping.
