EgoMooseOldProjects / Rbx_CustomFont

A custom font management system for Roblox
MIT License
21 stars 17 forks source link

Optimization #2

Closed EgoMoose closed 9 years ago

EgoMoose commented 9 years ago

Currently the events are "over firing".

Need to find a method to make sure that events such as the changed event only fire on the last change when fired in bulk.

local part = Instance.new("Part");

part.Changed:connect(function(prop) print("last prop changed", prop); end);

part.Name = "Brick";
part.Transparency = 0.5;
part.CanCollide = true;

-- Ideally the changed event would only fire on the last change, so CanCollide.

I'll probably have to look into my wrapper and see if I can work some meta-table magic. I can think of some potential solutions by using tick(), but that seems like it'd be prone to error. Then again, I suppose as long as the next change comes later than 1/60th of a second all should be fine.

EgoMoose commented 9 years ago

I have mainly fixed this issue with better planning. More can be done, but this issue is less relevant than it was.