I almost crashed out today. It was a hectic of a job today for me.. Basically, Today I wanted to work on Debugging tools in my original minecraft version. Though, this was hectic of a job, but now I am confident enough to say that, if anything goes wrong, my error codes will instantly trigger and stop those bugs to ever reach me, specially, If I messed up something. This is specifically made to guard rail myself (as I am a newbie in the GPU optimization and just breaks stuff way too often for comfort during my learning steps..)
Now, you might be working what is so special that I did that I am being too optimistic (Specially if you know my history of crashouts LOL…)
So, Basically, This time, I researched about an algorithm for dependencies.. Basically, what npm uses to keep track of all the dependencies.. You never know where knowledge might reach you LOL..
So, Basically, now each file, or system like Player, Physics, and to add, Chunks and More, will have to implement system, and each system would have a dependency tree, and then by using Kahn’s Algorithm, we can literally turn that tree upside down, and go through the data and make it work..
It literally tells you, which files are Missing in your code, that is just too good..
The only one critic is that, each time you need to be assing a new attribute, which might be tedious, but the profits are way too big to ignore at all..