Actually, screw polygons
Towering Success » Devlog
After digging into it, I think the biggest performance hog is the Delaunay triangulation that Godot does when creating a new collision polygon. Since I re-initialize all polygons whenever a goal is reached, that gets really expensive really fast. Not amount of polygon simplification is going to fix that.
So I switched to using simple collision rectangles. The Godot docs itself encourages their use if they fit the object's shape, which Tetris blocks obviously do. This required some refactoring - many functions assumed polygons - but the speedup is massive!
The better players amongst you should be able to get much further without waiting for literal minutes for the goal reset :)
Files
export.zip Play in browser
65 days ago
Towering Success
Blocks are towers are building blocks
Status | Released |
Author | Zekko |
Genre | Puzzle |
Tags | 2D, Casual, Experimental, Game Maker's Toolkit Jam, Godot, Indie, Mouse only, Physics, Short |
Accessibility | Textless |
More posts
- Actually, actually: polygons.64 days ago
- Polygon simplification71 days ago
Leave a comment
Log in with itch.io to leave a comment.