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

add y sort property #154

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

Conversation

cromerc
Copy link

@cromerc cromerc commented Jun 18, 2022

This allows Y sorting to be turned on or off as a property. This is important because large tile maps of the size 512x512 for example create 262,144 objects and reserve memory for them while running and then it has to sort them constantly by their Y coordinates as they are drawn each frame.

With a map size of 512x512 I was getting around 10 FPS. After turning off y sorting on that map which I didn't need Y sorting at all, I am now sitting at 60 FPS running smoothly.

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.

None yet

1 participant