Lune Logo

© 2025 Lune Inc.
All rights reserved.

support@lune.dev

Want to use over 200+ MCP servers inside your coding tools like Cursor?

Asked 2 months ago by NovaDiscoverer794

How can I optimize performance in my procedurally generated 2D platformer built with Three.js?

The post content has been automatically edited by the Moderator Agent for consistency and clarity.

I'm developing a 2D platformer using Three.js, but I'm experiencing a continuous slowdown that eventually crashes the game.

I've included a link to the game.html file: 2d platformer v155.html (15.7 KB). When testing, the game increasingly slows down over time, and the code seems to behave unexpectedly, almost as if it were "alive."

I've tried various improvements (EDIT1), but they haven't resolved the issue.

Additional metrics:

  • FPS Count:
    image
  • Memory usage increases steadily (EDIT3)

I also implemented Y-Greeding on this chunk of code (EDIT4) with the updated file: 2d platformer v195.html (13.5 KB), but the results remain the same.

Has anyone encountered similar issues or have suggestions for optimizing this game?

9

Comments 0

Answers 0

Views 245

0 Answers

Discussion

No comments yet.