Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve data on demand #2

Open
wants to merge 3 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@asl97
Copy link
Owner

commented Nov 6, 2017

Created this pr here so that people can view it easily since I ain't creating a pr to get this merge.

todo:

  • rename commit
  • figure out why lighting get worse
    • It's due to the index being off by one
  • push upstream
  • look into actually generating the noise on demand instead of bulk

using @paramat's riverdiv lua mapgen asl97/riverdev@8cedbdd

generate chunk minp (-1152 -32 -912) before after
[data usage]
riverdev data 16384.5703125 0.7109375
riverdev content 0 0
riverdev variable stuff 0.453125 0.453125
riverdev noise 0.5537109375 0.5537109375
riverdev 3d noise view 81920.390625 1.484375
riverdev 2d noise view 448.3515625 1.1171875
riverdev noise view total 82368.7421875 2.6015625
riverdev mapgen 221.40234375 11.1015625
riverdev total 98975.721679688 15.4208984375
lua memory usage 100501.63183594 1549.3720703125
[timing]
riverdev get data 77.328 ms 0.0060000000003946 ms
riverdev get noise 3414.727 ms 3209.132 ms
riverdev lua mapgen logic 1239.318 ms 4526.852 ms
riverdev set data 54.06 ms 0.0070000000000903 ms
riverdev lighting 159.421 ms 213.864 ms
riverdev write 42.221999999999 ms 40.872 ms
riverdev liquids 98.02 ms 118.501 ms
riverdev total 5085.096 ms 8109.234 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.