veloren/server
Joshua Yanovski 866cc79d2e Enable allocation of new textures on atlas allocation failure.
This solves the problem of not being able to set the view distance too
high, especially in pathological cases like giant trees.  For
simplicity, we just freeze any atlas where allocation failed and start
allocating to a new texture and atlas, letting reference counting
destroy the old one when there are no more references to it.  Because of
the spatial locality of chunk allocations, chunks allocated together
will virtually always have similar lifetimes, so the odds of this
causing significant fragmentation are very low, meaning this simple
solution should not do much worse than a much fancier one.
2021-03-20 16:21:41 +01:00
..
src Enable allocation of new textures on atlas allocation failure. 2021-03-20 16:21:41 +01:00
Cargo.toml scan_fmt -> 0.2.6 2021-03-15 17:48:21 -05:00