3 ms·
> - I found that using SVG or HTML for complex animations is way to slow. That's why moos.app uses a custom WEBGL renderer. Did you try Canvas2D? Also curious
by gamlegaz 5y ago
> - I found that using SVG or HTML for complex animations is way to slow. That's why moos.app uses a custom WEBGL renderer.
Did you try Canvas2D? Also curious to what you used for the 2D rendering, did you do your own implementation?
- thomasikzelf 5y agoYes a previous version was built on canvas2D. For simple things such as a couple of objects moving across the screen it works great. As soon as you start to do fullscreen "camera" movements performance starts to suffer. All images and paths need to be uploaded to the gpu every frame. Maybe the browser optimizes some things but in my tests it was not enough. The WEBGL renderer in this project is built from scratch because none were available that support SVG and were small enough for regular web pages. It allows me to upload paths and images to the gpu making fullscreen animations a lot more smooth.