View Issue Details

IDProjectCategoryView StatusLast Update
0031613RunnerFunctionsPublic2020-02-27 13:53
ReporterScott DunbarAssigned ToFritz 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionNo Change Required 
Product Version2.2.5 
Target VersionFixed in Version 
Summary0031613: Functions: Slow performance of Collision Functions with specific Instance ID
 When calling place_meeting and specifying an individual instance ID, the profiler is showing this is taking roughly the same time, if not longer when compared to calling it with just an objectID

 Better perfomance when specifying an individual instance ID
Steps To Reproduce1. Import attached project
2. Run in Debug
3. Select the Other Tab in debugger
4. Select My Code
5. Click Start Profiling
6. Observe the values of step% after some time to compare the to calls
TagsNo tags attached.
1.4 Found In
2.x Runtime Found In2.2.5.378
2.x Runtime Verified In


Scott Dunbar

2020-02-10 11:51


Scott Dunbar

2020-02-10 11:52


Collisions.yyz (38,847 bytes)


2020-02-14 11:26

Manager   ~0065361

The tree collision system used by GMS2 means that despite the large number of instances of Object1 they are rapidly rejected. Thus the performance of considering a single instance and all instances of a particular object can be the same or even quicker for the tree. Particularly in a case such as this where the object being considered isn't anywhere near the potential collidable objects. The cost of updating the tree is the same in both cases and does not show up in the individual collision checks.

Hope this helps!



2020-02-27 13:53

Adminstrator   ~0065392

Closing as per the above comment.