UnvanquishedAssets / map-parpax_src.dpkdir

A map for the Unvanquished game project
https://unvanquished.net
2 stars 0 forks source link

various optimizations (caulk, detail, subtlehint…) #9

Closed illwieckz closed 4 years ago

illwieckz commented 4 years ago

First I fixed an issue I probably introduced myself in the past, this surface was mistakenly caulked:

optimization

This is probably because I previously wanted to caulk that:

optimization

Basically there was many surfaces with most of the part being outside of the map, like that:

optimization

Or that:

optimization

optimization

The problem is that the lightmapper processes the whole surface, slowing down the light computation, wasting lightmap filespace, and in the end the surface is likely to be rendered… So the solution is to split them like this:

optimization

optimization

Or like this:

optimization

optimization

optimization

optimization

I also used subtlehint instead of hint brushes (see https://github.com/UnvanquishedAssets/tex-common_src.dpkdir/pull/1), sometime I had to resize them accordingly:

optimization

optimization

Also I fixed this detail not being detail:

optimization

optimization

Note that this kind of obviously outside texture is usually dropped by the map compiler, but while I was at it, I caulked it:

optimization

I also moved a bit a hint brush that was misplaced and produced many small cells (don't worry the big green split on first screenshot which is related to non-subtle hint brush), the result is still not perfect (due to the vent geometry) but at least this first step is done (ultimate optimization would be to make the whole vent pipe detail and make a surrounding square tunnel):

optimization

optimization