gles2: Major renderer optimization. Work in progress!
This moves all the rendering to a command list that is flushed to the GL as necessary, making most common activities upload a single vertex buffer per frame and dramatically reducing state changes. In pathological cases, like Emscripten running on iOS's Safari, performance can go from a dozen draw calls killing your performance to 1000 draw calls running smoothly. This is work in progress, and not ready to ship. Among other things, it has a hardcoded array that isn't checked for overflow. But the basic idea is sound! --HG-- branch : SDL-ryan-batching-renderer extra : source : eae4631409c03d3b7ab2e87526193d86ce996ba8
This commit is contained in:
parent
961a84f88e
commit
cc9ee08b65
3 changed files with 490 additions and 459 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue