4 ms·
> The CPU was spending 15-20% of its time every frame recreating the UI's vertex buffer. Not saying it is easy, but it's possible to optimize and cache vertex
by revvx 7y ago
> The CPU was spending 15-20% of its time every frame recreating the UI's vertex buffer.
Not saying it is easy, but it's possible to optimize and cache vertex buffers by using something similar to React's VDOM.
- smallnamespace 7y agoDoesn't your cache just become a limited retained mode with a somewhat hacky, opaque API?
- DougBTX 7y agoBasically yes. If an immediate mode API is much easier to use, and a retained mode underlying implementation has much better performance, then putting a React-style VDOM layer in-between could get the best of both worlds, depending on how well the middle layer is implemented.
- deleted 7y ago[deleted]