TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25205 20
I built SpriteForge: A free, lightweight 2D Pixel Editor in C++17 (0% idle CPU, no Electron BS)

Hey everyone!

I was getting tired of heavy, Electron-based tools eating up my RAM just to draw some pixel art and animations, so I rolled up my sleeves and built my own from scratch.

It’s called **SpriteForge**. It's written entirely in modern C++ (C++17) using SDL2, OpenGL 3.0, and Dear ImGui. It's completely free and open-source.

I focused heavily on making it as lightweight, fast, and portable as possible.

Some cool under-the-hood stuff I'm really proud of:

* **0% Idle CPU/GPU Usage:** I hooked up the main loop to `SDL_WaitEventTimeout`. If you aren't actively drawing or playing an animation, the thread goes to sleep. It consumes literally zero CPU/GPU. No laptop heating up!
* **Ultra-Low RAM Footprint:** The undo/redo history engine just stores raw pixel byte arrays of the layers instead of duplicating heavy textures. You can run this comfortably on an ancient 256MB RAM machine.
* **Standalone Portable EXE:** I cross-compiled the Windows version using MinGW-w64 and statically linked the GCC/C++ runtimes (`-static-libgcc -static-libstdc++`). No more "missing libstdc++-6.dll" errors on fresh Windows installs. Just double-click the \~3MB `.exe` and it opens instantly.
* Added a fun, custom cyberpunk "YGCODES" boot splash screen just for the aesthetic. 😃

Features for actual drawing:

* Multi-threaded layer blending (Normal, Multiply, Add, Screen)
* Full animation timeline with Onion Skinning
* Tools: Bresenham interpolated pen (no gaps when drawing fast), stack-safe flood fill, shape tools, etc.
* Built-in retro palettes (PICO-8, DawnBringer)
* Custom `.sforge` binary project saving and SpriteSheet/PNG exports.

I’d love for you guys to try it out, poke around the source code, or use it for your indie games.

Repo link: [https://github.com/YGCODES1/SpriteAnim](https://github.com/YGCODES1/SpriteAnim)

Let me know what you think or if you have any feature requests!

https://redd.it/1tfnhgi
@r_cpp
GitHub GitHub - YGCODES1/SpriteAnim: 2D Sprite Animator ! 2D Sprite Animator ! . Contribute to YGCODES1/SpriteAnim development by creating an account on GitHub.
More from @r_cpp
  1. Oct 3, 2026HPX 2.0.0 RC1 Released! – The HPX Project HPX is a general-purpose parallel C++ runtime sy…
  2. Oct 3, 2026[PLDI'26] Persistent Iterators with Value Semantics https://www.youtube.com/watch?v=cq33C5…
  3. Oct 3, 2026A Cross-Toolkit Timeline Control, Wed, Oct 14, 2026, 6:00 PM https://www.meetup.com/utah-c…
  4. Oct 3, 2026Upcoming C++ User Group meetings in October https://meetingcpp.com/meetingcpp/news/items/U…
  5. Oct 3, 2026Transcoding UTF-8 to UTF-16 with replacement at gigabytes per second https://lemire.me/blo…
  6. Oct 3, 2026EDG C++ fronted now released as open source https://edgcpp.org/#transition https://redd.it…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →