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

sceGeEdramSetSize not working properly #139

Open
Fewnity opened this issue Jun 26, 2023 · 2 comments
Open

sceGeEdramSetSize not working properly #139

Fewnity opened this issue Jun 26, 2023 · 2 comments

Comments

@Fewnity
Copy link

Fewnity commented Jun 26, 2023

Hello, I'm trying to use sceGeEdramSetSize(0x400000) to increase the vram but it's not working on my PSP Street.
Any idea why this code doesn't work?
Thanks!

#include <string>
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspge.h>

PSP_MODULE_INFO("PSP VRAM ISSUE", 0, 1, 0);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);

int main(int argc, char *argv[])
{
    pspDebugScreenInit(); // Initialize the debug screen

    if (sceGeEdramSetSize(0x400000) == 0)
    {
        pspDebugScreenPrintf("sceGeEdramSetSize 4MB ok\n"); // Never called
    }
    else
    {
        pspDebugScreenPrintf("sceGeEdramSetSize 4MB ERROR\n"); // Called
    }

    pspDebugScreenPrintf(std::to_string(sceGeEdramGetSize()).c_str()); // Prints "2097152" instead of the double

    while (true)
    {
        sceDisplayWaitVblankStart();
    }
}
@diamant3
Copy link
Member

According to the documentation of that function here, Maybe it's the same issue in PSP 1000 of your PSP Street.

@Fewnity
Copy link
Author

Fewnity commented Jul 10, 2023

According to the documentation of that function here, Maybe it's the same issue in PSP 1000 of your PSP Street.

Well, the PSP Street has the extra ram, so it should work on a Street 🤔

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