# Niagara: What is Execution Index?

**URL:** <https://forums.unrealengine.com/t/niagara-what-is-execution-index/475667>\
**Category:** FX\
**Tags:** unreal-engine, question\
**Created:** [December 9, 2020, 2:15pm UTC](https://forums.unrealengine.com/t/niagara-what-is-execution-index/475667 "2020-12-09T14:15:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann.Alet](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yann.Alet](https://forums.unrealengine.com/u/Yann.Alet)\
**Post date:** [December 9, 2020, 2:15pm UTC](https://forums.unrealengine.com/t/niagara-what-is-execution-index/475667/1 "2020-12-09T14:15:31Z")

</div>

Hi,

I am trying to drive particles movement with a simulation I am running in compute shaders.  
The idea is to have my compute shader output a 1024x1 1D texture with the world position of 1024 animated particles.  
I am spawning 1024 particles in Niagara with the Burst Spawn node, but not I am trying to find a way to get the persistant “index” of each particle. So when it gets time to update the position of Particle #6, I can just sample my 1D texture at (0,6).  
I am trying to do this with Execution Index, but it looks like although this integer is unique per particle, it is persisted accros multiple frames, as in particle 6 might get Execution Index 31 at frame 0, then 129 at frame 1.  
What is the best way to achieve this if I do not want to drive the entire simulation in Niagara blueprints?

Thanks

---

<div class="post-metadata">

**Author:** ![WeAreTheFractals](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wearethefractals/32/783051_2.png) [@WeAreTheFractals](https://forums.unrealengine.com/u/WeAreTheFractals)\
**Post date:** [July 6, 2023, 8:03am UTC](https://forums.unrealengine.com/t/niagara-what-is-execution-index/475667/2 "2023-07-06T08:03:58Z")

</div>

> [@Niagara Execution Index is not reliable](https://forums.unrealengine.com/t/niagara-execution-index-is-not-reliable/487718):
>
> I made a custom index attribute, which should be incrementing sequentially, but after a few seconds, it jumps to a random number.
