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

Fix speed issue in Block::handleInput() #19

Open
JesseTG opened this issue Mar 5, 2012 · 0 comments
Open

Fix speed issue in Block::handleInput() #19

JesseTG opened this issue Mar 5, 2012 · 0 comments
Assignees

Comments

@JesseTG
Copy link
Member

JesseTG commented Mar 5, 2012

I'm checking too many blocks for input. Perhaps my algorithm for fixing that should be;

-See which quadrant the cursor is on
-Check the size of the quadrant
-If it's the same as the cellsize, check whatever block is there for input
-Else return

I'll need some rect functions for the Grid. I should also look into move semantics.

@ghost ghost assigned JesseTG Mar 6, 2012
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