I work on Reason so I’m biased, but I believe the Reprocessing flappy bird clone live coding session at https://github.com/Schmavery/FlappyBird/blob/master/README.m... was one of the only times where I see folks work on a single codebase in native from scratch, compile _once_ to web, and have everything _truly_ work first shot, during a live demo nonetheless.
I see other people experiencing similar problems.
I'm asking because I have the suspicion my Firefox is not using hardware acceleration, at least not properly. In my case, it reaches roughly 30 fps.
For Chrome, go to chrome:gpu
For any of them, note that Windows may update the GPU driver a bit after startup and it disables GPU acceleration of open browsers until they're restarted.
HW_COMPOSITING says "unavailable by default: Hardware compositing is disabled", and OPENGL_COMPOSITING something similar. This corresponds with my experience of jumpy scrolling and Youtube making the the fans go berserk.
But apparently, WebGL isn't affected by this and performs okay.
Using WebGL ver: 1
Warning: No color buffer floats. Water will look bad. Try Chrome >= 64.
~50 fps (Chrome, Linux, i7 8th gen kaby). but I'm on battery mode and not sure which power saving features are active.
There might still be optimizations I can make and I could add more configuration settings for texture sizes.
How does http://madebyevan.com/webgl-water/ look in comparison? Is it smooth? Most of my water code is copied from his version.
What's your OS and browser?
Error: WebGL: texImage2D: Conversion requires pixel reformatting.
Firefox 52.6 ESR on Windows 7, on a beefy ThinkPad W541.
But the controls/adjustments seem to do nothing?
Anyways, good to see things implemented in ReasonML, currently the whole documentation is a bit of a mess, being split through the Ocaml, Reason, and Bucklescript websites.
60 FPS. Looks ok to me but have to zoom to fill the screen with the canvas.
Edit: using brave 1.0.30 chromium 60
(WebGL2, Chrome 64.0.3282.186 (Official Build) (64-bit))
But I'm getting like 11fps on my mobile xD