Posted February 09, 2023 by Dragonite
#optimization
Hello, I still exist.
Fixed a bug which causes BogoGML to hang on newer versions of GameMaker
I realize that sometimes this can be difficult to distinguish from Bogosort working as intended, but some recent version of GameMaker made a slight change to the way the break statement works which caused these functions to loop forever. I’ve fixed this.
Vastly improved Bogosort on arrays
GameMaker recently added a built-in way to shuffle an array, which I’ve set this to use instead of the manual method that we were doing before. This improves performance. I have accordingly re-evaluated the runtime estimates, and now predict that Bogosorting an array of size 16 will finish when your grandkids hit their mid-life crises, rather than when they quality for Social Security benefits.
As such, this now requires GameMaker Studio 2023.1 or later.
Some other minor optimizations