BurnySc2 / python-sc2

A StarCraft II bot api client library for Python 3
MIT License
509 stars 157 forks source link

feat: in_map_bounds will now cache every time it gets evaluated #63

Closed eladyaniv01 closed 4 years ago

eladyaniv01 commented 4 years ago

This is useful for recurring use cases such as evaluating each point in a calculated path ( which could occur many times, every frame ), Also using .right and .top properties for better readability

eladyaniv01 commented 4 years ago

_cached

After doing some performance testing, it seems that calling the cached evaluations is slower than simply doing the evaluation in run time. Closing.