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
Shrink Entity Struct #64
Comments
How can the difference between two angles be calculated if negative angles cannot be represented? |
You can just convert the angle to an |
Angle has been converted to |
Velocity has been converted to |
Entity.Distance has been removed completing another one of the requirements. |
Once #69 is merged lifespan will be |
Damage has been moved. |
Moved extension to Player. |
Benchmark Comparison on my computer:
|
|
For the possibility of performance we can shrink the world.Entity struct to 32 bytes from 64 bytes (1/2 the size and still power of 2).
The point of this issue is to discuss if we should implement this to test it or if the cons would outweigh any estimated pros.
Required changes:
Possible Pros:
*Angles can be added/subtracted together without expensive math32.Mod.
Cons:
Note that this is just an idea and may not be worth the added complexity.
The text was updated successfully, but these errors were encountered: