Closed mnordine closed 5 years ago
thanks for the report! Let's see if we can get this resolved with further optimization of canvas.
on Moto G4, it might run at 30fps, just curious if you see more lag than that??
It'd def lower than 30fps, but I can't really give you a reliable frame rate, since hooking it up to dev tools slows things down considerably
Here's a pull request that simply disables antialiasing. It doesn't make much visual difference, at least on high-dpi devices, and it can crush performance on mobile devices.
That's a great find. Thanks for that PR.
I'm not that surprised by the low frame rate on the Moto G4. Those devices we kinda intended to not run with animations. The iMac is surprising tho. I have a. iMac 5k and the game runs flawlessly. I'll investigate.
Hey @surma, crucially, which iMac?
Mine is a Retina 5K, 27", Late 2015 with AMD Radeon R9 M390 2GB
These are infamous for underpowered GPU with buggy drivers relative to the display they drive.
Still, this game should prob run smooth as silk on it, and disabling antialiasing will prob go a long way.
I'm not that surprised by the low frame rate on the Moto G4
Actually, I've gotten some fairly complex WebGL content to not only run 60fps on Moto G4, but even on my Moto E with 2x assets. Anyway, I'm sure you guys didn't intend to support every device under the sun with this nice little app you have here.
I think the Moto G4 should be able to run this too. My hunch is that the nebula I wrote is actually a bad idea. I'll look into it :)
I think the Moto G4 should be able to run this too. My hunch is that the nebula I wrote is actually a bad idea. I'll look into it :)
Wondering if the "performance happy path" would be compositing those "nebula" circles with CSS blending modes under a transparent canvas?
https://proxx.app/?no-cache - we've released a new version with some performance tweaks. Any better?
Rock solid 60 fps on my iMac now:
Should still disable alpha on "nebula" canvas context.
Btw, I used this awesome squoosh app for the above screenshot...
Seems much smoother on my Moto G4 as well
Brilliant! Thanks for pointing us in the right direction @mnordine!
Renders at ~13fps on an iMac 5K 27" Late 2015
It also runs very slow on my Moto G4 Plus