Re:Show HN: The Curious Expedition – A Steam game in HTML5
by ixtli on Wednesday May 16, 2018 @11:16AM
(#17083059)
Yes, I'm running current chrome on current macOS with a GeForce GTX 980 Ti (6gb vram) and 16gb ddr3. CPU utilization is 75% on all four cores and when drag-scrolling around the map I don't get more than 10fps. EDIT: I measured it with the developer tools. The performance is not significantly different with them open. I have a feeling you'll never be able to solve this without going to webgl because canvas drawing is slow af. I highly recommend checking out Three.JS. I wouldn't be surprised if you could port the entire game to using it in a week or so.
[ Parent
| on HN ]
Re:Show HN: The Curious Expedition – A Steam game in HTML5
by brendanr on Wednesday May 16, 2018 @12:24PM
(#17083659)
Canvas drawing is fast on platforms where it's hardware accelerated, which has been the case on things like iOS Safari for years now. At least in the past it was also beneficial to make a few optimisations such as drawing to integer pixel coordinates, avoiding special paths for subpixel rendering.
Re:Show HN: The Curious Expedition – A Steam game in HTML5
by ballenf on Wednesday May 16, 2018 @02:03PM
(#17084806)
How does Safari compare? For me it's butter smooth and no fan whir on a 3+ year old mbp.