# Didn’t expect build asteroids to turn into a performance problem lol. — retained record

> Retained reddit record from reddit:webdev.

Canonical: https://highsignal.app/data/records/c2151b7309257f2f

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:webdev)  published 2026-05-31 14:17 ingested 2026-06-01 11:13

[original source ↗](https://www.reddit.com/r/webdev/comments/1tswl43/didnt_expect_build_asteroids_to_turn_into_a/)

## extract

<!-- SC_OFF --><div class="md"><p>I added a few more asteroids to my build asteroids project and suddenly my FPS just tanked. Like completely unusable.</p> <p>Now I’m looking at my code and realizing my build asteroids loop is basically just redrawing everything every frame with no real optimization.</p> <p>I assumed request animation frame would kinda handle it automatically but yeah… that was me being naive.</p> <p>Is there a normal pattern people use when building asteroids so it doesn’t just fall apart as soon as you add more objects?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/Tricky-Highway-7099"> /u/Tricky-Highway-7099 </a> <br /> <span><a href="https://www.reddit.com/r/webdev/comments/1tswl43/didnt_expect_build_asteroids_to_turn_into_a/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/webdev/comments/1tswl43/didnt_expect_build_asteroids_to_turn_into_a/">[comments]</a></span>

## retained text

No document body was retained for this record — only its metadata was stored.
