-
Notifications
You must be signed in to change notification settings - Fork 3
Performance issues in various menus #28
Comments
This should be fixed with the Latest Commit : 8039cce Can you test the latest Nightly and confirm that? :) |
While performance has most certainly improved, the speed of the background is noticeably slower when compared to the main menu. Similar slowness also happens in the |
iirc VoltZ has it waiting 2 vblanks instead of one in lists currently to make the cursor usably slow (the 3DS doesn't have // In a global scope
int keyDelay = 0;
---
// In the main loop (probably by wherever the vblank wait is)
if(keyDelay > 0) keyDelay--;
---
// When checking the key
if(held & KEY_DOWN && keyDelay == 0) {
keyDelay = 3;
// Other code
} or you could do like libnds's keysDownRepeat https://github.com/devkitPro/libnds/blob/105d4943dbac8f2bd99a47b22cd3ed48f96af083/source/arm9/keys.c#L47 |
Makes sense. As for the performance in the |
The playlist screen is scanning the SD every frame, so that's why it's so slow if(dirChanged) {
char startPath[PATH_MAX];
getcwd(startPath, PATH_MAX);
chdir("sdmc:/Universal-Manager/playlists/");
getDirectoryContents(plsts);
chdir(startPath);
} should be if(dirChanged) {
dirChanged = false;
char startPath[PATH_MAX];
getcwd(startPath, PATH_MAX);
chdir("sdmc:/Universal-Manager/playlists/");
getDirectoryContents(plsts);
chdir(startPath);
} |
Tested using Nightly ae8a0de |
Describe the bug
In the Scripts menu, when scripts are on screen it tanks the FPS.
To Reproduce
Download the scripts from the Updater page with
Extra - Scripts
Expected behavior
Consistent performance/FPS when idling and in navigating.
Console (please complete the following information):
The text was updated successfully, but these errors were encountered: