A while back, I switched everything over to use Promises holistically, but it turns out that might not be a great idea for something that's basically an extraordinarily stripped-down rendering engine.
I'll probably leave the high-level APIs (especially around asset loading) Promise-aware/compatible, but move everything internal back to using callbacks.
A while back, I switched everything over to use
Promise
s holistically, but it turns out that might not be a great idea for something that's basically an extraordinarily stripped-down rendering engine.Apparently, native
Promise
s are an order of magnitude less performant than simply using callbacks: https://jsperf.com/native-promise-vs-callbackI'll probably leave the high-level APIs (especially around asset loading)
Promise
-aware/compatible, but move everything internal back to using callbacks.