3 ms·
I will be more impressed with HTML5 graphics capabilities when simple 2D game like this doesn't utilize 95% of my CPU cycles.
by dmitriy_ko 15y ago
I will be more impressed with HTML5 graphics capabilities when simple 2D game like this doesn't utilize 95% of my CPU cycles.
- TomGullen 15y agoCan you give more details of your setup? For me it's using ~20% CPU. Do you have WebGL enabled?
- dmitriy_ko 15y agoI'm running it in Chromium 17.0.963.56 on Ubuntu 11.10. I have two Intel Core i7-720QM CPUs, 4 cores each. My graphics card is ATI Mobility Radeon HD 4500. I just checked, WebGL appears to be disabled. I'll try to see if I can get WebGL to work on this machine tomorrow (maybe I can find new drivers for my card). If I succeed I'll let you know how CPU usage compares.
- TomGullen 15y agoThat's why it's using all your CPU then! You should definitely enable WebGL
- cousin_it 15y ago20% also seems too much. Castlevania SOTN ran on a 33MHz CPU, that's 1% of today's desktop machine. This game is 10x-100x less complex than SOTN, so it should use 0.01% to 0.1% of CPU. Also interesting to apply the same metric to RAM usage (SOTN used 2MB).
- TomGullen 15y agoThat's not a fair comparison at all! How are you deciding that it's 10-100x less complex than SOTN?
- cousin_it 15y agoSorry, that wasn't meant as a dig at your game specifically. Most webgame developers should be proud and happy to hear their game is 10% as complex as SOTN :-) For a fair comparison, just pick any metric that makes sense. For example, how many animation frames the main character has.