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

Optimization: Deliberate u8 overflow for universe size 256x256x256x6 #6

Open
craigmayhew opened this issue Aug 24, 2022 · 0 comments
Open

Comments

@craigmayhew
Copy link
Owner

craigmayhew commented Aug 24, 2022

Currently we have an if statement for every rule, checking if we are at the edge of the universe. This could be avoided if we have a deliberate overflow without an index out of range error. This would be possible for a universe of size 256x256x256 using a u8.

This is twice as big as our performant universes that top out at about 140^3 and so may need other performance improvements first before it is possible.

@craigmayhew craigmayhew changed the title Performance Idea: Deliberate u8 overflow for universe size 256x256x256x6 Optimization: Deliberate u8 overflow for universe size 256x256x256x6 Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant