MENU

Fun & Interesting

How I Boosted My Games FPS By 10x with One Simple Fix

Fishy Games 5,198 lượt xem 1 week ago
Video Not Working? Fix It Now

Wishlist Idle Fisher on Steam!
https://store.steampowered.com/app/3613500/Idle_Fisher/

Right now, my game is struggling at only ~1000 FPS… but I know it can do better. An empty SDL window can hit 10,000 FPS, so what’s slowing my game down? Turns out, my animation system was completely horrible. Instead of using a sprite sheet, I was loading individual images every frame—BIG mistake.

In this video, I completely revamp my animation system using sprite sheets, SDL source rects, and smarter memory management to massively improve performance. No more unnecessary image loads, and even trees now share their textures instead of duplicating them.

Now, my game runs way smoother, and I can finally move at the speed of light! WOOOO! 🚀

Oh! And keep an eye 👀 out for the game on steam. I should hopefully have the page up within the next few days!

👉 If you enjoyed this breakdown, drop a like & subscribe for more devlogs!

TIMESTAMPS
0:00 Intro
0:58 Old Method
2:54 New Method
6:01 Second Optimization
6:46 Third Optimization

Comment