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

Improved Readability of tileInFrustum & isOutsideViewport #504

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RuffledPlume
Copy link

Problem:
tileInFrustum & isOutsideViewport have all their varibles named some variant of var10, var7, var2, etc... making it difficult to read.

Proposed Solution:
I've gone through and given them proper names, IE: transformedZ, leftFrustumBound, rightFrustumBound, etc.
Also improved performance slightly by making tileInFrustum mirror isOutsideViewport, where variables are calculated in nested blocks to avoid unnecessary calculations.

Ambiguous variables names where being used making it difficult to read upon first glance, I've gone through and given them proper names,
Also improved performance slightly by making tileInFrustum mirror isOutsideViewport, where variables are calculated in nested blocks to avoid unnecessary calculations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant