skyfloogle / red-viper

A Virtual Boy emulator for the 3DS
794 stars 18 forks source link

[Suggestion] Port for PSVITA #51

Open MajorTom87 opened 8 months ago

MajorTom87 commented 8 months ago

Hi, since there is no way to psvita for virtual boy it would be interesting to see a porting of this homebrew, possibly with state saves

Eeveelution commented 8 months ago

it's specifically made for the 3DS and it's stereoscopic 3D screens which the vita lacks, i think its gonna be alot of effort to make a vita port given the source code heavily leans towards 3DS libraries...

MajorTom87 commented 8 months ago

it's specifically made for the 3DS and it's stereoscopic 3D screens which the vita lacks, i think its gonna be alot of effort to make a vita port given the source code heavily leans towards 3DS libraries...

I know that psvita doesn't have a 3D display, but you can always play in 2D... I don't know the 3DS libraries but I was hoping that they weren't very different from the psvita ones

Eeveelution commented 8 months ago

for graphics they arent using opengl cuz that only has limited support on the 3ds due to it's GPU, all the libraries are too specifically made for the 3DS, libctru and libcitro3d. you could port it but all of the gpu side code and all of the input and general app lifecycle code would have to be rewritten from scratch

MajorTom87 commented 8 months ago

Do you think that if these two libraries could be rewritten for PSVITA, there would be an advantage beyond using this homebrew? Also, are there ways like JNI, NDK, SDL that can be an alternative, if something like that exists for the port?

Eeveelution commented 8 months ago

All of that would have huge performance implications on the 3DS. Also switching to those libraries would also pretty much be a rewrite. You're better off making it from scratch. Also porting libraries specifically made for the 3DS to anything but a 3DS makes no sense. Not to mention rewriting these libraries would be more effort than just writing another virtual boy emulator.

Also Im Not sure if a virtual boy emulator written exclusively for the 3DS has any interest being ported to the vita. Someone could but I don't think that someone from this dev team would, which makes this issue kind of redundant

pmsobrado commented 8 months ago

Doesn't Retroarch have a core for VirtualBoy?

skyfloogle commented 7 months ago

Most of the graphics stuff is fairly analogous to older versions of OpenGL, and as far as I can tell, the Vita's CPU architecture is backwards compatible enough that the 3DS dynarec can just be reused. The menu would need to be redone, but making it a libretro core would partially sidestep that. The source code would need a pretty thorough reorganization, but not to the level of rewriting everything. The biggest chunks could be reused.