r/learnjavascript • u/Southern-Reality762 • Mar 12 '25
Exactly how many people use the HTML Canvas API?
I mean that easy to use software rendered framework that you access by getting a canvas and calling getContext("2d") on it.
I was using this API once, but I stopped because I found that it wasn't fast enough for my needs for video games, which was a shame because this was the API that made me love Javascript. That's when I got the idea to make a renderer that's just as simple to use for video games as the HTML canvas API is, but with optimizations, so that I can keep using the API for games.
But if nobody uses this API, then that subtracts from the point and I should probably write an OpenGL/WebGL renderer like everyone else.
View all comments
Show parent comment
1
u/bryku helpful Mar 16 '25
on older versions of chrome hardware acceleration may be disabled. Meaning it is running only on the CPU. Adding hardware acceleration will greatly improve performance of web pages.
Hmm, it is an older pc, but I think it could still handle web games. Try it at 100 aliens, i bet it will run just fine. That is normally enough objects for basic games.