# Runtime PCG spiking

**URL:** <https://forums.unrealengine.com/t/runtime-pcg-spiking/2260071>\
**Category:** World Creation\
**Tags:** Procedural-Generation, unreal-engine, question\
**Created:** [January 4, 2025, 10:37pm UTC](https://forums.unrealengine.com/t/runtime-pcg-spiking/2260071 "2025-01-04T22:37:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrDungeonlord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrDungeonlord](https://forums.unrealengine.com/u/mrDungeonlord)\
**Post date:** [January 4, 2025, 10:37pm UTC](https://forums.unrealengine.com/t/runtime-pcg-spiking/2260071/1 "2025-01-04T22:37:57Z")

</div>

Hey everyone, I am noticing that my PCG (Generate at Runtime, Partitioned & Hierachical Generation) is creating spikes from time to time when I move around [img 1]. Most of the time the UPCGSubsystem is ~70 μs, just sometimes it suddenly spikes with ~4ms. Has somebody ideas why that happens or how to optimize this? Some additional information of my setup: My graph is fairly simple.

- I samples points once (using the voxel plugin, but the idea how it samples is the same). [img 2]
- I feeds those points into a loop subgraph (loops through an array of dataassets) that I use as a biome filter (it uses feedback points to progressivly filter the points). [img 3]

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/b/d4bd7fbd7fd2b3e93e11f10f146f80dc8a08b66f.png)  
 ![image (1)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/4/fb49dd75356a44378d16eccb0219ae3501a8a38b.png)  
 ![image (2)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/d/f1da339d5a6a8d46328c8c04b293f984d96ec108.png)
