]> git.lizzy.rs Git - dragonfireclient.git/commit
Particle spawner: Do not spawn particles distant from player (#5766)
authorParamat <paramat@users.noreply.github.com>
Sat, 20 May 2017 14:46:35 +0000 (15:46 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 20 May 2017 14:46:35 +0000 (16:46 +0200)
commit60baf8120cdaabc619ab655065d95e8318e98412
tree4de5bc4f639cbcdb6b0d8a26efca1ecc81f3f2f5
parentaf2f02552f1999b9b491fc44386be5c1ea8a8882
Particle spawner: Do not spawn particles distant from player (#5766)

Previously, every particle was rendered by (even if not actually visible to)
the client regardless of distance. This significantly reduced client FPS.

Acts clientside, particle spawners are always sent to clients, but each
particle is checked for distance from the player.
As with 'add particle' the distance limit is set to 'max block send distance'
as this determines how far a client can see.
src/particles.cpp