Premium Only Content

No Game Engine Game Dev: Word Sleuth 036: Two bugs and std container hunting
Streamed on 2024-08-22 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
I started off with some bugs that had crept in during some of the major refactors of the last week or two. The first bug was with text color not updating correctly. With a bit of tracing I found the issue to be similar to what we found before ... the colors weren't being applied all the way to the end of the desired colors list. Really it should just always match the quad capacity, so there's now a TODO item for that.
The second bug was about a texture not showing up right. It turns out that I had an array index out of bounds write in the ShaderStore that was overwriting the array in TextureStore, but it took some digging to figure that out. Once I spotted it, the cause for the error was easy to identify and the fix was easy. In ShaderWarehouse there are pairs of files: vertex shader and fragment shader. So I know the number of files is 8. However, a shader program takes one of each, so the ShaderStore has room for 4. Then, when I request a Shader from the ShaderStore, the index was with respect to the 8 files in ShaderWarehouse and needed to be adjusted to the number of shader programs in ShaderStore. With a little indexing magic, all was well with the world once more.
Then it was time to continue the hunt for standard library containers. I have found that every time I use one, it can be refactored away into something more basic and just as functional. So I removed the std::vector from VertexBufferLayout with relative ease. Then I started on the last std container in my code base. It is the ActionSequence scheduler. Instead of keeping lists, each ActionSequence maintains more internal state (Idle, Waiting and Running) and the Scheduler has an ActionSequence pool. This should eliminate all allocations/frees nicely. It very nearly works, but there is still a bug or two I am working through. On Monday I should have eliminated all std containers and be in a good working state.
-
2:00:48
The Charlie Kirk Show
3 hours agoTHOUGHTCRIME Ep. 97 — The Thoughtcrime WILL Continue
97.8K69 -
35:08
Colion Noir
8 hours agoA Bear, an AR-15, and a Home Invasion
10.7K3 -
3:05:55
TimcastIRL
4 hours agoJimmy Kimmel Refuses To Apologize Over Charlie Kirk Comments, Blames Gun Violence | Timcast IRL
151K115 -
2:44:24
Laura Loomer
7 hours agoEP144: Trump Cracks Down On Radical Left Terror Cells
37.8K10 -
LIVE
Drew Hernandez
9 hours agoLEFTISTS UNITE TO DEFEND KIMMEL & ANTIFA TO BE DESIGNATED TERRORISTS BY TRUMP
975 watching -
1:12:32
The Charlie Kirk Show
5 hours agoTPUSA AT CSU CANDLELIGHT VIGIL
68.8K55 -
6:53:45
Akademiks
7 hours agoCardi B is Pregnant! WERE IS WHAM????? Charlie Kirk fallout. Bro did D4VID MURK A 16 YR OLD GIRL?
42.6K5 -
2:26:15
Barry Cunningham
6 hours agoPRESIDENT TRUMP HAS 2 INTERVIEWS | AND MORE PROOF THE GAME HAS CHANGED!
96K67 -
1:20:27
Glenn Greenwald
7 hours agoLee Fang Answers Your Questions on Charlie Kirk Assassination Fallout; Hate Speech Crackdowns, and More; Plus: "Why Superhuman AI Would Kill Us All" With Author Nate Soares | SYSTEM UPDATE #518
92.2K33 -
1:03:06
BonginoReport
8 hours agoLyin’ Jimmy Kimmel Faces The Music - Nightly Scroll w/ Hayley Caronia (Ep.137)
151K64