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

Random order does not use whole playlist when lots of mods (8000+) on list #1

Closed
sauhir opened this issue Jan 30, 2017 · 2 comments
Closed

Comments

@sauhir
Copy link

sauhir commented Jan 30, 2017

When I add e.g. 8000 mods into the playlist the shuffle never goes past roughly the halfway point in the playlist.

I tried clicking next song for a long time to see if it wasn't just bad luck with the random generator, but it does seem to be a bug.

@koobo
Copy link
Owner

koobo commented Jan 31, 2017

It seems that the bug is on this line: https://github.com/koobo/HippoPlayer/blob/master/puu016.s#L5682
The random generator output is capped to 0xfff, for some reason, it should be capped to 8192 instead.

Related to this, there's a bookkeeping function to keep track of which files have been played. There's a table that can contain 8192 entries, taking a whole lot of 1024 bytes of memory.

@koobo
Copy link
Owner

koobo commented Sep 19, 2019

I've now gloriously removed the random problems and upped the limit to 32766 modules :-)

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

2 participants