I wonder that which has better performance between Canvas and WebGL.
I tried some researches but can’t find answer, so asking help here.
- Using Cocos Creator 1.70
- 2D Action RPG type game. Want to have high frame rate.
- HTML5 based mobile game, will published through Facebook instant messenger browser (Instant game)
- Texture size will around 1024x1024 x 3. A lot of 32x32 size pixel art style sprite animations.
- Using own collision system and character moving system. (not using physics and etc)
I thought WebGL is faster, but Canvas is faster (higher frame rate) on my development environment, even there is more draw call than WebGL.
(MacBook Pro 2013, 2.4 GHz Intel Core i5, High Sierra 10.13.2, Google Chrome 63.0.3239.84)
Please share me any suggestion, information or web link, to understand which is faster. I want to understand the reason, so that I can care about coding approach.