I had previously written a post about an attempt to create Catbot's fur by hand, and I was making progress. However today it occurred to me that this was going to be a complete performance destroyer, and I can't allow that. I re-thought his appearance by attempting to describe the aesthetic with more solid shapes - such as the bulking of his skin - and adding a few wild hairs. I wanted Catbot to be able to run under less than ideal conditions, or on lesser hardware.
I had to add rear knees to Catbot so that he would stop sitting awkwardly.
Catbot is now more detailed, and the new skin now allows for adjusting settings on the fly. Optimizing the drawing of Catbot and reduces pieces was the key. Here is the breakdown:
| What | Before (v6) | After (v7) |
|---|---|---|
| Draw calls per frame | 347 | 47 (−86%) |
| Separate mesh pieces | 339 | 14 |
| Materials | 242 | 35 |
| Image data | 12.9 MB | 0.7 MB |
| File size | 20.7 MB | 9.0 MB, and 6.9 MB for the app version |
| Triangles | 147k | 130k |
Cutting the draw calls allows him to run at 220 FPS in chrome - leaving headroom for fancy ideas like voice engines and future additions. I also had Claude check for unused garbage code and deleted things that were no longer being used. Catbot has undergone many transformations. 😹
I can pull up Catbot in my browser and sit him next to desktop Catbot. 😂 Hmm. Perhaps I see if they can have a conversation?
I think I'll take a break from working on his appearance for now, although he probably could use a snack and a solid brushing. 😹 At least he looks relatively happy.
I am thinking of sharing a discord server where we can chat about personal desktop pets. Would anyone take an interest in that?



Top comments (2)
The draw calls dropping from 347 to 47 is the number that made me stop scrolling, Anna. That is optimization a user feels, because 220 FPS in Chrome leaves headroom for fun ideas instead of rendering. The rear knees are my favorite detail: a small fix that makes him sit properly. Would you open that Discord server for desktop pets?
thats kinda what i was aiming for - ai pet server basically. i was getting everything set up for that :) thought it would be fun to share ideas and maybe even have the bots talk amongst themselves haha