You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The draw callback system can be error-prone if misused, because you have to call coroutine.yield (Draw.yield) manually inside the callback closure you submit.
The :update() function would return the continue/stop result and the amount of delta time to wait for. The scheduling and execution would be handled behind the scenes.
This would also make it easier to program and instantiate new classes that implement the draw callback interface instead of needing to allocate a new closure every time.
The text was updated successfully, but these errors were encountered:
Ruin0x11
added
design
Concerns the architecture of the engine
modding
Concerns new modding features beyond the scope of porting vanilla's codebase.
labels
May 5, 2021
The draw callback system can be error-prone if misused, because you have to call
coroutine.yield
(Draw.yield
) manually inside the callback closure you submit.A cleaner interface might help.
The
:update()
function would return the continue/stop result and the amount of delta time to wait for. The scheduling and execution would be handled behind the scenes.This would also make it easier to program and instantiate new classes that implement the draw callback interface instead of needing to allocate a new closure every time.
The text was updated successfully, but these errors were encountered: