# FastGeo doesn't appear to fully strip components that aren't needed on a target platform 

**URL:** <https://forums.unrealengine.com/t/fastgeo-doesnt-appear-to-fully-strip-components-that-arent-needed-on-a-target-platform/2689126>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [December 3, 2025, 9:57am UTC](https://forums.unrealengine.com/t/fastgeo-doesnt-appear-to-fully-strip-components-that-arent-needed-on-a-target-platform/2689126 "2025-12-03T09:57:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [December 3, 2025, 9:57am UTC](https://forums.unrealengine.com/t/fastgeo-doesnt-appear-to-fully-strip-components-that-arent-needed-on-a-target-platform/2689126/1 "2025-12-03T09:57:08Z")

</div>

Hey,

It appears that on a server cooked build, the fast-geo containers keep around components which aren’t necessarily server relevant (e.g have visibility, but no collision), although only as a reference (from what we’ve seen).

Due to our setup, where we have to disable server streaming, this contributes to a death by a thousand cuts.

I’m not sure if this has been dealt with in more recent updates, but locally I’ve mainly done something like this (not totally sure if this is really the best way to do this):

```auto
template<typename FuncType>
static void ForEachCurrentCookingPlatform(FuncType&& Func)
{
  if (GUnrealEd && GUnrealEd->CookServer && GUnrealEd->CookServer->IsInSession())
  {
    const TArray<const ITargetPlatform*> Platforms = GUnrealEd->CookServer->GetSessionPlatforms();
    for (const ITargetPlatform* Platform : Platforms)
    {
      if (!Func(Platform))
      {
        break;
      }
    }
  }
  else if (IsRunningCookCommandlet())
  {
    ITargetPlatformManagerModule& TPM = GetTargetPlatformManagerRef();
    const TArray<ITargetPlatform*>& Platforms = TPM.GetActiveTargetPlatforms();
    for (const ITargetPlatform* Platform : Platforms)
    {
      if (!Func(Platform))
      {
        break;
      }
    }
  }
}
 
 
...
 
 
void UFastGeoWorldPartitionRuntimeCellTransformer::Transform(ULevel* InLevel)
{
 
...
  bool bServerOnly = false;
 
  ForEachCurrentCookingPlatform([&bServerOnly](const ITargetPlatform* Platform)
    {
      bServerOnly = Platform->IsServerOnly();
      return bServerOnly;
    });
   
  if (IsDebugMode())
  {
    UE_LOG(LogFastGeoStreaming, Log, TEXT("- Server Only: %s"), bServerOnly ? TEXT("true") : TEXT("false"));
  }
 
...
 
for (UActorComponent* Component : Components)
{
  bool bShouldKillComponent= bServerOnly && !Component->NeedsLoadForServer();
  if (!bShouldKillComponent)
  {
    FFastGeoElementType FastGeoComponentType = FastGeo::GetFastGeoComponentType(Component->GetClass());
    check(FastGeoComponentType.IsValid());
 
    FFastGeoComponent& FastGeoComponent = CurrentComponentCluster->AddComponent(FastGeoComponentType);
    FastGeoComponent.InitializeFromComponent(Component);
  }
  // Remove the component from the actor
  Actor->RemoveOwnedComponent(Component);
  Component->MarkAsGarbage();
}
 
...
 
if (FastGeoHLOD.IsValid() && FastGeoHLOD->HasComponents())

```

Many thanks,

Alister

---

<div class="post-metadata">

**Author:** ![RyanBickell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanBickell](https://forums.unrealengine.com/u/RyanBickell)\
**Post date:** [December 3, 2025, 7:03pm UTC](https://forums.unrealengine.com/t/fastgeo-doesnt-appear-to-fully-strip-components-that-arent-needed-on-a-target-platform/2689126/2 "2025-12-03T19:03:37Z")

</div>

Hi,

Do you mind sharing the repro steps for this issue?

Thanks,

Ryan

---

<div class="post-metadata">

**Author:** ![RyanBickell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanBickell](https://forums.unrealengine.com/u/RyanBickell)\
**Post date:** [December 3, 2025, 9:35pm UTC](https://forums.unrealengine.com/t/fastgeo-doesnt-appear-to-fully-strip-components-that-arent-needed-on-a-target-platform/2689126/3 "2025-12-03T21:35:33Z")

</div>

I confirmed with the dev familiar with this code that it’s an issue and created a JIRA for it. I don’t have an ETA as priorities for bugs and features can shift at any time.

-Ryan
