-
Notifications
You must be signed in to change notification settings - Fork 343
Simplify use_spatial_hash
flag
#1730
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
Conversation
This breaks other code in arcade. Historically |
@einarf There are some cases where a default of I'll work on getting the tests to pass. |
d386df5
to
158b424
Compare
I think setting to False by default with no None option makes the most sense, we just need to update the typing for the other stuff in TileMap that passes down to that. We should probably also put this in the breaking changes section of the release notes. While it’s not necessarily a big breaking thing, there could be users passing None to this(and I think functionally that would still work, but type checkers would complain). |
@Cleptomania Thanks for the input. I pushed the change last night and am looking at the failing tests now. I love that we have those to catch these kinds of things. I think I've updated all the places in tilemap now. Also, I hadn't considered anyone passing an explicit |
This changes the flag to a bool instead of Optional[bool]. The behavior should remain unchanged, even when the parameter is not passed in because the default is False.
434853e
to
d132ec2
Compare
Agree. I don't think we're doing the auto select thing any more. We usually fall back to gpu collision. |
@einarf @Cleptomania This is ready for review now that tests are passing. |
This change is fairly straight forward. It's simpy just removing a legacy option Thanks for the contribution! |
This changes the flag to a bool instead of Optional[bool]. The behavior should remain unchanged, even when the parameter is not passed in because the default is False.