Skip to content

Optimizations + Notris Example

Latest
Compare
Choose a tag to compare
@BtheDestroyer BtheDestroyer released this 12 Jul 01:50
· 30 commits to master since this release

Optimizations

FindChildOfType() is a nice method, but it's pretty slow when you're getting the same child over and over again. Objects now keep track of the first Transform, Rigidbody, and Collider they're given which can be retrieved with GetTransform(), GetRigidbody(), and GetCollider(). This speeds up drawing and physics immensely.

Bug fixes

Certain callback methods (OnStart and OnActivate, for example) could be called out of order (if the object started deactivated, for example). This has been corrected

Notris

I've created a new example to showcase GameStates better - Notris.

Attached files

All precompiled libraries were built with g++ (MinGW.org GCC-6.3.0-1) 6.3.0. If your compiler doesn't support cross compilation with this compiler, you can build your own libraries from the attached source code.

  • libAspen.a
    • Release build of the engine
    • Do not use with libAspendbg.a
  • libAspendbg.a
    • Debug build of the engine
    • Do not use with libAspen.a
  • libimgui.a
    • Precompiled ImGui + ImGui_SDL library in release mode
    • For license, see attached ImGui.ImGui_SDL.License.txt
  • Example-Notris.zip
    • Tetris-inspired example showcasing the engine's features.
    • Extract and run Notris.exe to try it.
    • Extract and open main.cpp for the source code.