8000 160 Fixed tick snapping by Xenocidel · Pull Request #167 · maxrchung/S2VX · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

160 Fixed tick snapping #167

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

Merged
merged 4 commits into from
Oct 4, 2020
Merged

160 Fixed tick snapping #167

merged 4 commits into from
Oct 4, 2020

Conversation

Xenocidel
Copy link
Collaborator

There is a precision error when Seek()-ing the track that is part of osu! framework caused by BASS. I thought it would be exact since it literally just sets the track time to whatever we passed into Seek() but that is apparently not the case. The way we calculated where to snap to uses % which will not work if it happened to come up short of the next tick (like if we were 0.05 before the actual tick time). So by using % we were essentially only checking one side of the tick. This fix now determines if we are currently on a tick by using Round() rather than %

@Xenocidel Xenocidel linked an issue Oct 2, 2020 that may be closed by this pull request
@Xenocidel Xenocidel changed the title Fixed tick snapping 160Fixed tick snapping Oct 2, 2020
@Xenocidel Xenocidel changed the title 160Fixed tick snapping 160 Fixed tick snapping Oct 2, 2020
@Xenocidel Xenocidel merged commit 5830a2b into master Oct 4, 2020
@Xenocidel Xenocidel deleted the 160-FixTickSnapping branch October 4, 2020 22:38
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.

Tick bar getting stuck when going left and right
3 participants
0