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

Don't discard changes that occur after hitting MAX_UPDATE #307

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

Conversation

mastahg
Copy link

@mastahg mastahg commented Feb 1, 2018

Currently if we hit the maximum number of requested changes, the rest of the changes are discarded. This pr changes it so that we always complete an obstacle once we start working on it, and the remaining obstacles are then moved to the front of the line to be processed next update.

abortedEarly = true;

if (!contains(m_update, m_nupdate, ob->touched[j]))
m_update[m_nupdate++] = ob->touched[j];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can overflow m_update now.

abortedEarly = true;

if (!contains(m_update, m_nupdate, ob->touched[j]))
m_update[m_nupdate++] = ob->touched[j];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants