PepeElToro41 / ui-labs

UI Labs is a storybook plugin for Roblox
https://pepeeltoro41.github.io/ui-labs/
68 stars 9 forks source link

Frame-Deferred hot-reloading #59

Open PepeElToro41 opened 1 month ago

PepeElToro41 commented 1 month ago

Right now, the hot-reloader hot-reloads instantly when any script changes.

This isnt ideal, because specially with rojo, rojo can sync up multiple scripts at the same time, which will make the story hot-reload instantly several times.

The hot-reload process should be deferred to the next frame, and multiple script changes queue up for the next frame, or, maybe, even for a fraction of a second

This could most likely fix this issue https://github.com/PepeElToro41/ui-labs/issues/58 but it's worth looking at that too