ingress-model-viewer
ingress-model-viewer copied to clipboard
Use callbacks internally
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-callback
I'll probably leave the high-level APIs (especially around asset loading) Promise
-aware/compatible, but move everything internal back to using callbacks.