Skip to content

Optimizations

Compare
Choose a tag to compare
@jaipack17 jaipack17 released this 06 Jan 06:30
· 33 commits to master since this release
  • Optimizations to how Rigid bodies are updated. There was a flaw earlier, I was using 2 for loops for the same task but in different locations. This has been cut down to just 1 loop.
  • Extra work for non-collidable rigid bodies is not longer performed. Thanks to @boatbomber for the PR.
  • Events like .Touched and .TouchEnded are fired only if the events are connected using :Connect() somewhere.
  • Prevent memory leaks by:
    • Disconnecting all Engine events when Engine:Stop() is called.
    • Warning and returning from Engine:Start() if its already running.
    • Disconnecting and destroying RigidBody.TouchEnded event when RigidBody:Destoy() is called.