4 ms·
Optimizing RigelEngine’s OpenGL Rendering for the Raspberry Pi
- f00zz 6y agoI suspect his bottleneck is glBufferData and he should look into buffer orphaning.
- Jasper_ 6y agoOr look into uploading all the data at the start of the frame and using glBindBufferRange.
- DougMerritt 6y agoThe name "RigelEngine" is nice in itself, but the headline does not reveal what this actually is: it's a reimplementation of the code for Duke Nukem II (using existing data files).
- Gauge_Irrahphe 6y ago>I thought rendering it in 1080p could allow for future high-res mods, but it ran too slowly on Raspbeery Pi, so I switched to the original resolution instead. sums up the whole article.
- aappleby 6y agoThe bit about optimizing his blit shader surprised me (as a 20+ year graphics dev) - the few extra multiply-adds should be virtually free on most architectures as that small a shader would generally be ROP-limited.
- aappleby 6y agoOh and yeah the remaining glBufferData would def be on my fix-next list. Unless the tilemap changes dynamically, all those tile triangles should be grouped into chunks in one "vertex atlas" and their screen position controlled by one uniform per chunk.
- Narishma 6y agoWith such a low resolution, I'm wondering if it wouldn't be faster and simpler to just do the whole rendering on the CPU and just blit and upscale the result with the GPU.