# Serious performance degradation on the PyGamer over the last months

**URL:** <https://forum.makecode.com/t/serious-performance-degradation-on-the-pygamer-over-the-last-months/3515>\
**Category:** Help\
**Created:** [September 17, 2020, 7:20pm UTC](https://forum.makecode.com/t/serious-performance-degradation-on-the-pygamer-over-the-last-months/3515 "2020-09-17T19:20:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ractive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ractive/32/928_2.png) [@ractive](https://forum.makecode.com/u/ractive)\
**Post date:** [September 17, 2020, 7:20pm UTC](https://forum.makecode.com/t/serious-performance-degradation-on-the-pygamer-over-the-last-months/3515/1 "2020-09-17T19:20:09Z")

</div>

After a couple of months I got back the this game that I developed: [https://github.com/ractive/air-combat](https://github.com/ractive/air-combat)

I opened it and downloaded it to the PyGamer. After starting to play on the PyGamer I realized that the game gets horribly slow as soon as many sprites are on the screen (grab some green P powerups and keep shooting by holding the B button and you’ll see…). I didn’t have this issue when I last built and downloaded the game a couple of months ago, as it was running smoothly. I didn’t do any serious code changes since then and I didn’t upgrade the firmware of the PyGamer. I always used arcade beta.

Here’s a a binary for the PyGamer from the 11th of May that still does work and is perfectly playable:  
[https://1drv.ms/u/s!AudUw1FVPYdzteozwVO\_j990akg7\_g](https://1drv.ms/u/s!AudUw1FVPYdzteozwVO_j990akg7_g)

And here’s a binary that got built on the 1st of September that gets slow “under load”:  
[https://1drv.ms/u/s!AudUw1FVPYdzteo0p1cZyDwAP39PFA](https://1drv.ms/u/s!AudUw1FVPYdzteo0p1cZyDwAP39PFA)

Any ideas, when and where this performance regression could have been introduced?

---

<div class="post-metadata">

**Author:** ![darzu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/darzu/32/1882_2.png) [@darzu](https://forum.makecode.com/u/darzu)\
**Post date:** [September 17, 2020, 7:38pm UTC](https://forum.makecode.com/t/serious-performance-degradation-on-the-pygamer-over-the-last-months/3515/2 "2020-09-17T19:38:45Z")

</div>

Thanks for sharing this, I’ve filed an issue for this: [https://github.com/microsoft/pxt-arcade/issues/2433](https://github.com/microsoft/pxt-arcade/issues/2433)

We made some updates to our physics calculations so it seems likely we introduced a regression during that. Sorry about that!

---

<div class="post-metadata">

**Author:** ![ractive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ractive/32/928_2.png) [@ractive](https://forum.makecode.com/u/ractive)\
**Post date:** [September 18, 2020, 6:09am UTC](https://forum.makecode.com/t/serious-performance-degradation-on-the-pygamer-over-the-last-months/3515/3 "2020-09-18T06:09:07Z")

</div>

Tell me when I can help testing or debugging things.
