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.
-
4:55:48
iCheapshot
9 hours ago $8.05 earnedWhere We Landing Boys! | Warzone Verdansk is Back Yeerrr
69.2K4 -
1:11:15
Savanah Hernandez
11 hours agoIt’s Time To Start Asking Hard Questions: Where Are The Arrests?
73.5K212 -
2:57:33
TimcastIRL
10 hours agoTrump Tariffs Spark Global PANIC, Countries BEG Trump, CAVE To His Demands | Timcast IRL
238K243 -
1:37:16
Roseanne Barr
12 hours ago $33.66 earnedThe Man Who Saved America | The Roseanne Barr Podcast #93
105K68 -
10:49:37
Dr Disrespect
19 hours ago🔴LIVE - DR DISRESPECT - WARZONE - OG VERDANSK
253K29 -
16:38
T-SPLY
15 hours agoDemocrats Are At President Trump For "Liberation Day"
43K32 -
2:53:20
vivafrei
14 hours agoModerating Debate on Syria - Roy Gutman vs. Scott Horton - Regime Change Good or Bad?
183K15 -
1:04:37
Man in America
15 hours agoCHEMTRAIL WARFARE: Tom Renz Exposes the Military’s SECRET Chemical Attacks on Americans
45.9K42 -
2:09:33
Precision Rifle Network
1 day agoS4E11 Guns & Grub Live - Playing World Of Tanks!
28.7K3 -
59:19
AlaskanBallistics
19 hours ago $0.58 earnedI Love this Gun PodCast # 24
20.2K