Closed swiftcoder closed 5 months ago
I've tested on Chrome+WebGL and native MacOS. Have not had a chance to fire it up on other platforms
Edit: Safari and Firefox for Mac both also work
I've tested on Chrome+WebGL and native MacOS. Have not had a chance to fire it up on other platforms
Edit: Safari and Firefox for Mac both also work
Cool. That's good enough for me 🙂
Get rid of the vertex buffer entirely, in favour of indexing vertex positions from an array within the vertex shader.
Before this patch full_screen_draw is taking 18% of my frame time (mostly in creating and destroying the vertex buffer multiple times per frame):
After the patch it is reduced to 6%:
Note that my app is very heavy on post-process effects - I expect the majority of apps will not see quite such a major difference.