Tuesday, January 14, 2020

Seeing 20/20 with the New Architecture (Here comes GCollisionX)

I got the green light to port the currently incomplete GCollision library to the new architecture and it went smooth. It took about a day and I can say that both users and their device's memory that run the GMath library will be happy. Previously, the GMath libraries were all virtual functions and required you to instantiate the respected class in order to call its functions to operate on data. Now, you can just call the namespace to access these functions. In addition, this reduces the amount of overhead for the virtual function table. Another great change in this new architecture is users no longer required to free any G objects they had created. If the object falls out of scope then it goes, "bye-bye". Those are just a couple benefits that I've enjoyed in this new architecture, to begin with, and I'm sure there will be more.

No comments:

Post a Comment