Skip to content

Commit

Permalink
Improved lighting
Browse files Browse the repository at this point in the history
This commit rewrites the procedure that is responsible for light
updating.

this commit
-provides iterative solutions for unlighting and light spreading
-introduces a new priority queue-like container for the iteration
-creates per-node MapBlock caching to reduce retrieving MapBlocks from
the map
-calculates with map block positions and in-block relative node
coordinates
-skips light updating if it is not necessary since the node's new light
will be the same as its old light was
  • Loading branch information
juhdanad authored and nerzhul committed Oct 27, 2016
1 parent 1fd9a07 commit c071efa
Show file tree
Hide file tree
Showing 6 changed files with 643 additions and 443 deletions.

0 comments on commit c071efa

Please sign in to comment.