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

Mouse.cpp Not Trimming RawDeltaBuffer #4

Open
aljo242 opened this issue Jan 30, 2020 · 0 comments
Open

Mouse.cpp Not Trimming RawDeltaBuffer #4

aljo242 opened this issue Jan 30, 2020 · 0 comments

Comments

@aljo242
Copy link

aljo242 commented Jan 30, 2020

void Mouse::OnRawDelta( int dx,int dy ) noexcept
{
rawDeltaBuffer.push( { dx,dy } );
TrimBuffer();
}

OnRawDelta in Mouse.cpp calls TrimBuffer() instead of TrimRawDeltaBuffer().

This is the only place TrimRawDeltaBuffer would be called. Because of this, rawDeltaBuffer could become a mega chode in memory I guess.

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

No branches or pull requests

1 participant