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

Anbernic 35XX plus: stutters on high BPM value #100

Closed
igavrilov opened this issue Aug 26, 2024 · 18 comments
Closed

Anbernic 35XX plus: stutters on high BPM value #100

igavrilov opened this issue Aug 26, 2024 · 18 comments

Comments

@igavrilov
Copy link

OS: muOS 2405.2 Baked Beans
LGPT: 1.4.1-1

Prerequisites

  • Create a project with 1 track/1 sample (i.e. break loop)
  • Set BPM to 140
  • Press play

Issue details

  • The app stutters after a few seconds
  • Input lag increasing after a few seconds
  • If set BPM to higher values (170+) the issue is more noticeable (more stutters, longer input lag)
  • The issue isn't reproducible if set BPM back to 128-is value.

First of all I would appreciate if someone will confirm the issue is:

  • Reproducible on RG35XX Plus/H/24/SP devices
  • Reproducible on RG35XX OG devices
  • Someone has noticed a similar issue on other devices
@djdiskmachine
Copy link
Owner

I can assert that this issue is not present on PocketCHIP, Raspberry Pi 3
I have many songs in the 160-175 BPM range

@purelygrey
Copy link

Do you mean this build? #96
If not which one? I have a few H700 devices and an OG 35XX lying around, and also a rather busy fast track -- I can try it out

@igavrilov
Copy link
Author

@purelygrey yes, #96
Here is my executable lgpt-rg35xxplush24.arm7hf.zip

@purelygrey
Copy link

@igavrilov thanks! Have you tried Knulli with performance governor or stock? I had to roll back from MuOS baked because I had constant stutters in Breath of Fire on SNES, which doesn't happen on Knulli at all, I wonder if the governor is to blame. I'll test the build out

@igavrilov
Copy link
Author

Alright, Knulli is 64bit so I have to build it with the appropriate toolchain. The executable I shared above won't work.

@purelygrey
Copy link

@igavrilov could you please share an archive with your lgpt setup on MuOS?

@igavrilov
Copy link
Author

@purelygrey here you go. You can install it using Archive Manager from /mnt/mmc/ARCHIVE:
LGPT-1.4.1.zip

Update muOS to BAKED, the app doesn't work on REFRIED for some reason 🤷


A weird thing happened: last time I used it on muOS the default key mappings worked well but this time I had to set different mapping. Anyway the app works fine (on low BPM) and the problem I described in the issue persists.

I've got troubles with building LGPT using Knulli toolchain unfortunately. Almost got to the end, still trying but got stuck on linking step. I am not very experienced in cross-compile things so If you (or anyone else) were able to build the app with the Knulli toolchain - I'd appreciate any kind of instructions/hint/directions to follow.

@djdiskmachine
Copy link
Owner

What's the error in the linking step?

@purelygrey
Copy link

I can confirm the problem on my 35XX Plus, it definitely stutters when it's over 150 bpm on MuOS Baked. It also skips on lower BPM, but way less so it's not as noticeable (tested on about 72bpm).
I tried a few things:

  • forcing performance scaling governor before running LGPT
  • nice --20
  • setting sample rate in alsa to 44100 instead of 48000
    But nothing had changed. I'll try to mess around with alsa settings a bit more just in case, and test other devices as well

@djdiskmachine
Copy link
Owner

Have you tried any of the ones from Simoteks build yesterday?
These will be available on master with some new features soon-ish

https://github.com/simotek/LittleGPTracker/releases/tag/1.4.2_Test4

@igavrilov
Copy link
Author

@djdiskmachine No more errors after I updated to the latest master and used @simotek's toolchain 🎉

@djdiskmachine
Copy link
Owner

Fabtastic news! Have fun piggin'

@igavrilov
Copy link
Author

I meant no more build errors. Just tried Piggy 1.4.2 on Knulli - no stutters, works smoothly (except slightly wrong key mapping).
Garlic build still has stutters issue with 1.4.2 though. Not sure is it worth to debug since we've got Piggy working on Knulli for h700 devices.

@purelygrey
Copy link

purelygrey commented Sep 2, 2024

I meant no more build errors. Just tried Piggy 1.4.2 on Knulli - no stutters, works smoothly (except slightly wrong key mapping). Garlic build still has stutters issue with 1.4.2 though. Not sure is it worth to debug since we've got Piggy working on Knulli for h700 devices.

Since I have MuOS Baked on hand I tried the @simotek's build as well, and it's doesn't stutter, awesome! I managed to caught it skipping, but it did that only once so far, it's been roughly 10 minutes, and I went for a reality check on my V90 and I caught it skipping just once as well - maybe it's some sort of quirk in the track, I don't know. However I hear some strange tempo instabilities in my test track, like it's dragging or rushing sometimes, I'm recording audio right now for an a/b test

@purelygrey
Copy link

purelygrey commented Sep 2, 2024

Turns out I'm not mad, and the same project lags a little bit on RG35XX Plus on MuOS baked, compared to BITTBOY build on Powkiddy v90, by the end of the track it gets pretty noticeable that the former is lagging behind. Also stereo channels are reversed on it for some reason (Pan 00 is right, 7F is left). Very strange, because if anything it should be the other way around, v90 is very underpowered in comparison

Here's how the lag looks like after about 1:50, roughly 29ms
image

Here are the recordings if you want to take a look at them
Renders.zip

And the project file I'm using:
lgpt_CoolQuestion.zip

In any case it is a lot better now than it was before, and can be considered usable, which is very good!

@igavrilov
Copy link
Author

Ok, so 32-bit executable stutters, 64-bit executable works almost perfect. I believe the issue can be closed with a resolution: use 64-bit executable on muOS. muOS is actually 64bit:

[~]# uname -a
Linux muos-9abdd 4.9.170 #254 SMP PREEMPT Tue Dec 19 15:45:52 CST 2023 aarch64 muOS/2 NeXT

@djdiskmachine
Copy link
Owner

Thank you for testing and reporting your findings!

@simotek
Copy link

simotek commented Sep 9, 2024

Ok, so 32-bit executable stutters, 64-bit executable works almost perfect. I believe the issue can be closed with a resolution: use 64-bit executable on muOS. muOS is actually 64bit:

[~]# uname -a
Linux muos-9abdd 4.9.170 #254 SMP PREEMPT Tue Dec 19 15:45:52 CST 2023 aarch64 muOS/2 NeXT

Sometimes its a bit confusing because i've noticed that some of the OS's are using a 64bit kernel with a 32bit userspace.

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

4 participants