Author Topic: [XP] Heretic's Collision Optimizer  (Read 2666 times)

Offline Heretic86

  • Astral Trancist
  • *****
  • Posts: 776
  • LV: 34
    • View Profile
[XP] Heretic's Collision Optimizer
« on: April 30, 2015, 02:10:01 AM »
Collision Optimizer XP
Authors: Heretic
Version: 1.01
Type: Custom Movement System
Key Term: Custom Movement System


The way the default code handles Collision is extremely inefficient.  This script cleans that up by only checking for Events at a specific location instead of every single Event every time any Event moves.

This script also doubles as a Framework for much faster checking of Events at locations, which can allow for additional scripts to use Events for many other things that would normally cause to much lag to be worth while.


  • Exponentially increases Collision and Trigger Performance
  • Checks Collisions with Events that use Decimal @X @y Coordinates


No screenshots.



Place below Modular Passable (Required)
Place above Loop Maps (Optional)

(click to show/hide)


There is nothing for you to configure in this script.  If you are a Scripter and are interested in the functionality of this script, just read the Documentation in the Script itself.


Severe Lactose Intolerance.

Credits and Thanks

  • I'd like to thank Arby's for making tasty sandwiches!

Author's Notes

This script requires Modular Passable.

The way this Script works is to store the Locations of all Events in a Hash and uses rounded @x @y coordinates as a Key for Hash Values.  This is far more efficient than to have every single Event to compare values to every other Event on the entire Map every single frame.  By scanning every Event every time, 10 Events causes 100 coordinate comparisons to be made.  When you have 100 Events, 10000 comparisons are made each and every frame.  Thus, performance increase is Exponential, especially when there are a lot of moving Events on a Map.
« Last Edit: April 21, 2016, 11:37:27 AM by Heretic86 »
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)