# Max number of point s in Surface Sampler

**URL:** <https://forums.unrealengine.com/t/max-number-of-point-s-in-surface-sampler/1841227>\
**Category:** World Creation\
**Tags:** unreal-engine, editor, question\
**Created:** [May 5, 2024, 1:19pm UTC](https://forums.unrealengine.com/t/max-number-of-point-s-in-surface-sampler/1841227 "2024-05-05T13:19:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WillemGr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WillemGr](https://forums.unrealengine.com/u/WillemGr)\
**Post date:** [May 5, 2024, 1:19pm UTC](https://forums.unrealengine.com/t/max-number-of-point-s-in-surface-sampler/1841227/1 "2024-05-05T13:19:06Z")

</div>

In my PCG graph, I have two lines of ‘code’ that have the same input of surface points to sample from, but the density, extend (X and Y) and looseness differ:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/c/4dcdd3a5a14eb67dd2b086e6cd54b5def0ba1cb0.jpeg).  
Because the area that the graph is input, it can cause an error in any Surface Sampler node, when density, extends and/or looseness are above certain levels for that area. For instance, if PCGVolume is set to scale X=1200, Y=1900, the number of points in the lower SurfaceSampler exceeds 160.000.000 - too high. Set to 1/2th (600x950), the number is 7.300.000 which seems acceptable.  
So I have two questions: What is the maximum number of points that Surface Sampler can handle, and is there some calculation in which I can tweak density, extends and looseness with a given number points, so these parameters can be calculated without having to re-generate the graph?

---

<div class="post-metadata">

**Author:** ![ZulCul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZulCul](https://forums.unrealengine.com/u/ZulCul)\
**Post date:** [January 27, 2025, 10:21pm UTC](https://forums.unrealengine.com/t/max-number-of-point-s-in-surface-sampler/1841227/2 "2025-01-27T22:21:48Z")

</div>

> [@WillemGr](#):
>
> Set to 1/2th (600x950), the number is 7.300.000 which seems acceptable.  
> So I have two questions: What is the maximum number of points that Surface Sample

Hello! Did you find a solution to this? I keep getting “tried to generate too many points” error and I have no Idea what I can do with it

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [January 28, 2025, 4:07am UTC](https://forums.unrealengine.com/t/max-number-of-point-s-in-surface-sampler/1841227/3 "2025-01-28T04:07:05Z")

</div>

Generate less points? (ei: feed in a smaller area to sample?)

No where does it say that you can’t re-run PCG several times in different areas… so if you are concerned about “this zone is too small”, well, don’t be. Duplicate the thing and run it again over a different zone.

The nicety of it is that once you are done the stuff/instances are placed and can even be completely unlinked off PCG.  
Matter of fact, I’d suggest just outputting mesh name → transform into a CSV, and creating a system of your own that adds the instances into the level using other (more compatible with older systems) methods - like Foliage and custom HISMC inside dedicated BPs.
