IsmAvatar / LateralGM

A free Game Maker source file editor
http://lateralgm.org/
Other
95 stars 25 forks source link

Fix Instance Creation Flicker #476

Closed RobertBColton closed 4 years ago

RobertBColton commented 4 years ago

This is an attempt to resolve #472 by not having the Room.addInstance method immediately add new instances to the visual list. This allows time for the caller to fully initialize properties of the new instance (such as location based on mouse cursor position) before the new instance becomes visible.

With this change, instance creation is super slick now and there is no flicker or perceivable lag. This way is arguably more efficient as well because instances are initialized with the correct properties rather than having the room visual unnecessarily respond to all of the property change events.

RobertBColton commented 4 years ago

Closing this one as Josh finds it inferior.