Mission-critical performance drawing app for Android and PC that can rival or surpass Procreate the drawing app for iOS
The link to my original post: Telegram: View @sono_rakugaki
One of many reasons why: Telegram: View @sono_rakugaki
Currently, the project is stalled because I’m busy to survive
You’re seeing my 6–7 minute sketch in my own drawing app, which I’m writing from scratch in Zig.
I started writing it a month ago. Progress so far:
— Hand-rolled Wayland communication functions (no libwayland)
— Implemented Bresenham’s Line Algorithm to eliminate dotted lines. The algorithm interpolates dots between two positions, forming a consistent, continuous line.
— Implemented basic tablet and pen recognition protocols.
— A simple pressure algorithm: the harder you press, the blacker the color becomes; the softer, the grayer it gets, approaching white.
— Pen button for erasing mode. Well, the color changes to white and you paint white ;') Not a proper eraser, and no layers yet.
— Frame-based updates to avoid screen tearing, thousands of function calls per second, and other performance/efficiency issues. I continuously ask the system, “Are you ready?” Whenever it responds with yes, I perform a screen update in a rectangle for the affected surface, roughly speaking.
Now I’m learning how to write my own ultra-minimalistic UI library (much like Clay). I will never use any bloated libraries such as Qt or whatever.
Right now, there is literally zero lag when drawing, and the screen is incredibly smooth. This is in debug mode with an extremely messy codebase as of now. Imagine all the optimizations I’m going to make for mission-critical performance. I’ll make sure everything stays true to my vision even after I release the app for Android and PC.
#android_drawing_app_project
Zero dependency on any external libraries. The only dependency is libc for these kernel level system call functions: shm_open, shm_unlink, ftruncate, send, recv and so on.
Also have to say explicitly: NO AI IS EVER USED FOR CODE GENERATION. Fuck AI, fuck the vibe coders. Besides, AI knows no shit about Zig (which is good)
I’m handwriting everything myself. I do use AI, BUT only for learning math, algorithms, geometry and stuff like that, NEVER for ready to copy&paste code

