mercoledì 22 novembre 2017

Day 208: Alternative culling

Today I tried to find a solution to the bad performance of the 16x16 version of tiled deferred rendering. Alas, I couldn't come up with anything, as it's clear that the problem is the number of memory accesses, and there is no apparent way of reducing that. Using a TBO might help with cache coherence, but I'd rather not use that to store complex structs.

Anyway, to improve performance further (including for the 32x32 version), I decided to experiment with another type of culling, AABB culling. Some papers argue that the test is faster to do, and occasionally leads to better results. So I tried it and I agree it gets good performance, despite being slightly worse than the frustum culling. Another thing most paper do, is pick one of the two techniques, but I think that doing both has great benefits. In the picture you can see blue and red squared, which represents the differences in lights culled by the first and second methods (brighter = more than 1 light). As you can see, a LOT of lights gets treated differently, and I think that the extra computation to do both tests is justified (and profiling this specific scene seem to prove it, but it is definitely not a common scene").


Nessun commento:

Posta un commento