-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix rendering of non zero src rect #1
Conversation
hey there. i haven't actually worked with psl1ght in a while, so i'll need to get that set up again first. i'll report back on what happens on real hardware once i get around to testing it. |
Heres the code for the project im currently working on, if it helps to be able to have a existing reproduction app |
so i got my own ps3 hooked up to boot my homebrew, but when attempting to run my app on real hardware, i just get a black screen, and cant open the XMB (i can tell the main thread isnt dying because the app seems to still accept interaction and is at least getting into the main loop) |
hello again. i apologize for leaving you hanging there, the ps3toolchain would error out when setting it up for some reason and i got a bit distracted with other projects. i remember how for some odd reason the compiler would get weird with the |
I tried |
weird... i'm not sure if this is related, but i remember how some people were talking about a similar issue happening on an unfinished port i made of the RSDKv5 decompilation (a.k.a., the engine Sonic Mania uses). in particular when they tried compiling it themselves, it would do a similar thing here. but there was something about my setup that just made it... work? the executables i had compiled worked on real hardware, but the executables everyone else compiled just didn't. unfortunately, i don't have said setup anymore, i think i erased the virtual machine's hard drive image long ago. it seems like someone made a fork of the port, so it might be worth seeing what's going on there... |
Looking at the fork, they have quite a few changes to the build flags, but overall it looks like they just use I also tried reducing my all the way down to just "init sdl, create window, create renderer, enter SDL loop, running RenderPresent every frame" and it still does not init correctly on real hardware im honestly not sure how to do debugging here, im quite new to PS3 homebrew |
this port they have problems with the current toolchain. I while working with the rsdkv5 port based on the ultra noticed this. for some reason it does not run on real hardware. But looking at the files contained in this repository, it contains a patch file, would this be necessary to make it work on hardware? |
I think that patch file was the base of this port, given it seems to just be an early version of the current code (and doesnt seem to apply anyway, none of the paths line up) |
Okay. I didn't go very deep into this port. in my profile has another port of sdl2, which was used in RSDKv5. It is quite stable and works on real hardware |
the official PSL1GHT samples dont work on my PS3 either, so i've opened ps3dev/PSL1GHT#144, real hardware being broken seems to be an upstream bug |
I also had problems when trying to run some graphical samples of psl1ght, the only one I could get it to work was blitting, which I had to change in its Makefile so that it compiled with -O2 levels, otherwise it wouldn't work. |
that is correct.
makes sense. |
in the meantime, i suppose i can merge this pr now? since we know it's an issue with the SDK and not the code itself. |
seems that way, if theres any changes required in this project to make it work with whatever changed/broke upstream, i'll open another PR to fix it |
alright. |
WOOOOOOW, congratulations. |
Found this when trying to implement text rendering, tested working now in RPCS3, still needs to be tested on real hardware though.
At least in my testing, the PSL1GHT documentation is wrong here, inW/H is actually X2/Y2, not width and height. But maybe this is an inaccuracy in RPCS3?