sceGeEdramSetSize not working properly

Open
#139 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
embedded-iot

Research direction

Start by reproducing the shown C++ program on a PSP Street and inspect the return values from sceGeEdramSetSize and sceGeEdramGetSize. Check the PSP SDK declarations and documentation for these entry points and compare the requested size with the device's reported behavior. Done means the platform-specific behavior and any required conditions are established and documented.

Written by the indexing model from the issue text.

Description

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();
    }
}
Dominant language
C
Stars
1.2k
Forks
190
Avg merge
1d 15h
Merged PRs (30d)
12

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pspdev/pspsdk

All issues in pspdev/pspsdk

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.