# How to print fps to screen

**URL:** <https://forum.makecode.com/t/how-to-print-fps-to-screen/45097>\
**Category:** Help\
**Created:** [July 27, 2026, 4:02am UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097 "2026-07-27T04:02:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [July 27, 2026, 4:02am UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097/1 "2026-07-27T04:02:50Z")

</div>

I was wondering if their was a way to print the fps to the screen instead of using the show stats method or the stats extension

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [July 27, 2026, 4:22pm UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097/2 "2026-07-27T16:22:22Z")

</div>

sprites.create(img`.`).say(fps)? console.log(fps)? Is that what you mean?

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [July 27, 2026, 4:24pm UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097/3 "2026-07-27T16:24:04Z")

</div>

You could probably use the (time since last frame) block in Richard’s advanced extension and a little math to get the number?

---

<div class="post-metadata">

**Author:** ![CodaKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codaknight/32/33491_2.png) [@CodaKnight](https://forum.makecode.com/u/CodaKnight)\
**Post date:** [July 27, 2026, 4:24pm UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097/4 "2026-07-27T16:24:24Z")

</div>

Those are the only methods I can think of. I did this though for one of my extensions:

```ts

```typescript
function printFPS() {

            let now = game.runtime()

            let delta = (now - lastTime) / 1000

            if (delta > 0) {

                fps = frameCount / delta

            }

            console.log("FPS: " + Math.round(fps))

            frameCount = 0

            lastTime = now

}

```

That’s all though ):

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [July 28, 2026, 2:09am UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097/5 "2026-07-28T02:09:02Z")

</div>

oh wait now I think I know what you mean something like

> **[delta time](https://arcade.makecode.com/S14527-98199-57753-13047)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

right?

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [July 28, 2026, 9:01pm UTC](https://forum.makecode.com/t/how-to-print-fps-to-screen/45097/6 "2026-07-28T21:01:00Z")

</div>

Something like that. You could test it using the built in one just to make sure.
