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

move the decision to delay raw memcard flushes out of the thread. #939

Merged
merged 1 commit into from Sep 2, 2014
Merged

move the decision to delay raw memcard flushes out of the thread. #939

merged 1 commit into from Sep 2, 2014

Conversation

shuffle2
Copy link
Contributor

@shuffle2 shuffle2 commented Sep 2, 2014

This allows the flush to work better with games which hammer
memcard accesses over short periods as it delays more of the work.

@@ -34,4 +35,6 @@ class MemoryCard : public MemoryCardBase
Common::Event m_flush_trigger;
Common::Flag m_is_exiting;
std::unique_ptr<u8[]> m_flush_buffer;
std::chrono::steady_clock::time_point m_last_flush;
static const std::chrono::seconds m_flush_interval;

This comment was marked as off-topic.

This allows the flush to work better with games which hammer
memcard accesses over short periods as it delays more of the work.
@delroth
Copy link
Member

delroth commented Sep 2, 2014

@shuffle2: This comment grants you the permission to merge this pull request whenever you think it is ready. After addressing the remaining comments, click this link to merge.


LGTM, except for that small change.

@dolphin-emu-bot allowmerge

shuffle2 added a commit that referenced this pull request Sep 2, 2014
move the decision to delay raw memcard flushes out of the thread.
@shuffle2 shuffle2 merged commit cc6db8c into dolphin-emu:master Sep 2, 2014
@shuffle2 shuffle2 deleted the fix-memcard-flush2 branch September 2, 2014 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants