# How do I calculate on every frame/tick?

**URL:** <https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 3, 2025, 10:53am UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798 "2025-02-03T10:53:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hafmcmcces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafmcmcces](https://forums.unrealengine.com/u/Hafmcmcces)\
**Post date:** [February 3, 2025, 10:53am UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/1 "2025-02-03T10:53:14Z")

</div>

Hello everyone,

I currently have the issue, that the documentation on this page seems outdated, as I was trying to run a code on every frame rendered.

Here is the link to one of the entries on this forum:

> **[Simulation module | Unreal Editor for Fortnite Documentation | Epic Developer...](https://dev.epicgames.com/documentation/en-us/uefn/verse-api/versedotorg/simulation)**
>
> Learn technical details about the Simulation module.

It says, that Sleep(0,0) updates on every frame but it seems as this is incorrect and it only updates at a maximum rate of 30 ticks per second.

This is not the only case where the official documentary is not correct as I found no solution to this and had to try many things regarding other stuff.

But maybe I am wrong with this assumption and you have a solution for this?

I am currently trying to read the fps on my own and not with the ingame option in the upper right corner. Does anyone have a solution to this?  
If possible I would also like to discuss this with a programmer from UEFN if they are interested or have time regarding my topic. I wrote support but they linked me to this forum but I can´t find a solution for this on here either.

TLDR: Does anyone have a solution on executing code every frame?

Thank you in advance 🙂 #

Best regards  
Hafmcmcces

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 3, 2025, 11:38am UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/2 "2025-02-03T11:38:35Z")

</div>

> [@Hafmcmcces](#):
>
> it only updates at a maximum rate of 30 ticks per second.

That is because verse itself runs at 30 ticks per second

---

<div class="post-metadata">

**Author:** ![Hafmcmcces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafmcmcces](https://forums.unrealengine.com/u/Hafmcmcces)\
**Post date:** [February 3, 2025, 12:38pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/3 "2025-02-03T12:38:54Z")

</div>

Ok, thanks for that information.

So I see, there is no possible way to ever get a better tick rate with uefn… That is a shame, would be nice to have a higher tick rate.

But thanks for that information, then I don´t have to try and improve here, saved me alot of work 🙂

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [February 3, 2025, 1:25pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/4 "2025-02-03T13:25:43Z")

</div>

I don’t think you’re understanding how it works, Verse runs on the server, not the client, 30 is a decent tickrate for servers, what are you trying to achieve exactly ?

---

<div class="post-metadata">

**Author:** ![Hafmcmcces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafmcmcces](https://forums.unrealengine.com/u/Hafmcmcces)\
**Post date:** [February 3, 2025, 1:47pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/5 "2025-02-03T13:47:44Z")

</div>

I want to calculate the fps that happened in a specific period of time.  
Let´s say, the game runs for 30 seconds and I want to know exactly how many fps I had in the seconds 0-10, 10-20, 20-30.  
I tried to add +1 on every tick but as you said, it only runs on 30 ticks per seconds, it is obvious that it isn´t going to work that way.  
There is a lot happening in these 30 seconds and trying to get the exact amount of fps via the ingame overview is nearly impossible as it ranges from around 60 to 120 and that very fast.

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [February 3, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/6 "2025-02-03T13:51:12Z")

</div>

There’s no way for you to get or calculate the client’s fps unfortunately, closest you can do is use the epic provided performance dashboard it’s not as extensive as custom code obviously but it is what it is. [Performance Dashboard in Fortnite Creative | Fortnite Creative Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/fortnite-creative/performance-dashboard-in-fortnite-creative)

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [February 3, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/7 "2025-02-03T13:51:56Z")

</div>

FPS means Frames Per Second, it means there is rendering happening, your client renders frames but the server doesn’t, you can’t retrieve that, still don’t know why you want to btw

---

<div class="post-metadata">

**Author:** ![Hafmcmcces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafmcmcces](https://forums.unrealengine.com/u/Hafmcmcces)\
**Post date:** [February 3, 2025, 1:59pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/8 "2025-02-03T13:59:40Z")

</div>

Ok, thank you for that information, I will look into that.

---

<div class="post-metadata">

**Author:** ![Hafmcmcces](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hafmcmcces](https://forums.unrealengine.com/u/Hafmcmcces)\
**Post date:** [February 3, 2025, 2:03pm UTC](https://forums.unrealengine.com/t/how-do-i-calculate-on-every-frame-tick/2315798/9 "2025-02-03T14:03:15Z")

</div>

Thats true, I didn´t realize that verse runs on the server, I thought it runs on the client.  
I want to calculate the FPS because there are events on my map that reoccurs often and I don´t want to have performance issues for users If I overstretch it, when I use specific parts more often.
