Premium Only Content

No Game Engine Game Dev: Word Sleuth 103: Debug QOI decoding, then coding QOI encoding
Streamed on 2024-12-19 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Yesterday we got a good start on QOI decoding. There were some issues so that's where we started today. With a bit of debugging we learned that most of our issues were copy/paste errors in the BMP output code we stole from somewhere else in a different context. It wasn't too long before we could read a QOI file and output a BMP that was correct.
The next step was to reverse the process: read in a PNG and output a QOI. The QOI documentation is pretty straightforward so it wasn't too difficult to get that working as well. One of the nice things about the QOI implementation is that the encoder doesn't have to support every operation to get started. I implemented a few of the simple ones first (RGB, RGBA, Index and Run) before turning attention to Diff and Luma. The only tricky part is to test the distances with wrapping, but even without the wrapping detection the encoder gets the image almost as compressed as the example files.
Lastly I plumbed the new QOI encoder into out PNG embedding asset pipeline. With only a few minutes of work there it was compressing all of our art assets to 14% of their original size.
Due to our four days of effort on sound and image compression, the size of our executable shrunk to 24% of the size it was at the start of this week. Not too shabby, if I do say so myself.
-
LIVE
SoundBoardLord
1 hour agoThriller Thursday! CREEPYSHIFT!!
118 watching -
12:11
Tundra Tactical
4 hours agoSCCY Pistols Being PAWNED Off
3.32K -
LIVE
RJTWIN
2 hours ago🔴LIVE - Give Me The Goods | REPO | Clean Content - !blerp !discord
85 watching -
16:58
T-SPLY
7 hours agoDems’ Bad News: El Salvador Rejects Abrego, Democrats Fume!
37K36 -
1:03:34
BonginoReport
5 hours agoCabinet SHAKEUPS Underway Amid National Security Leaks - Nightly Scroll w/ Hayley Caronia (Ep.39)
59K69 -
55:18
LFA TV
9 hours agoHerbert Armstrong Was Right About Europe | TRUMPET DAILY 5.1.25 7PM
16.7K2 -
DVR
Quite Frankly
7 hours ago"Behind Bars w/ Darren Monahan: Guarding Charles Manson" 5/1/25
16.9K3 -
1:18:03
Kim Iversen
5 hours agoCIA Launches YouTube Video Ads to Recruit Chinese Spies | The Birthrate Crash: Why Women Aren’t Having Kids
67K37 -
1:35:12
Redacted News
5 hours agoHUGE! TRUMP FIRES NEO-CON MIKE WALTZ, PUTIN PRAISES TRUMP FOR MINERALS DEAL | Redacted News
119K75 -
1:32:39
Dr. Drew
8 hours agoDana Loesch: Insane Texas Law Threatens To JAIL Political Meme Posters & Criminalize Parody (Up To A YEAR In Jail) w/ David Zweig – Ask Dr. Drew
39.8K7