the bird book will summon 21-30 birds(at first time), call FindValidPositionByFan(start_angle, radius, attempts=12, test_fn) many times.
and the local table "angles" is same when "attempts" is not changed. so cache the result will save a little resource.
my example patch is attched.
Steps to Reproduce
just open source and read the book.lua
- 1
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now