Homebrew RELEASE Development Thread - RetroArch libnx

  • Thread starter m4xw
  • Start date
  • Views 667,604
  • Replies 4,272
  • Likes 69
Status
Not open for further replies.

m4xw

Ancient Deity
OP
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
@Leonidas87
Did @m4xw send you that build through PM?

Not gonna share it yet.

Code:
[libretro INFO] [Mednafen PSX]: Samples / Frame: 737.03825
[libretro INFO] [Mednafen PSX]: Estimated FPS: 59.83407
[Threading]: Waiting for Thread Exit
[INFO] Threaded video stats: Frames pushed: 6345, Frames dropped: 2360.

Surprised how good it runs, but it feels like the game is slowed down, but renders neaaarly fullspeed, at least in my tests.
 

rock88

Well-Known Member
Newcomer
Joined
May 19, 2018
Messages
81
Trophies
0
Age
35
XP
900
Country
Russia
@m4xw, I'm use thread/memalign from threading branch, RetroArch run, but after load iso just freezes. Log:

Code:
[Threading]: Starting Thread on Core(#1)

[INFO] Environ SET_PIXEL_FORMAT: RGB565.

[INFO] Redirecting save file to "/.srm".

[INFO] Redirecting savestate to "/.state".

[INFO] Redirecting cheat file to "/.state".

[INFO] Version of libretro API: 1

[INFO] Compiled against API: 1

[INFO] [Audio]: Set audio input rate to: 29970.03 Hz.

[INFO] [Video]: Video @ 960x720

[INFO] [Video]: Starting threaded video driver ...

[Threading]: Starting Thread on Core(#2)

[Video]: Video initialized

[Input]: HID initialized

[INFO] [Joypad]: Found joypad driver: "switch".

[INFO] [Video]: Found display server: null

[Audio]: Audio initialized

[INFO] [LED]: LED driver = 'null' 0x74f512e28

[INFO] SRAM will not be saved.

[INFO] Loading history file: [].

[INFO] Loading history file: [].

[INFO] Loading history file: [].

[INFO] Updating firmware status for: (null) on /switch/psx/

[INFO] Using content: /switch/psx/Jet Ace [E] [SLES-04125] [bin+cue].bin.

[Threading]: Waiting for Thread Exit

[INFO] Threaded video stats: Frames pushed: 1391, Frames dropped: 0.

[INFO] RetroArch 1.7.3 (Git 83095f7a16)

[INFO] Redirecting save file to "/switch/psx/Jet Ace [E] [SLES-04125] [bin+cue].srm".

[INFO] Redirecting savestate to "/switch/psx/Jet Ace [E] [SLES-04125] [bin+cue].state".

[INFO] === Build =======================================

Capabilities: 

Built: Jun 13 2018

[INFO] Version: 1.7.3

[INFO] Git: 83095f7a16

[INFO] =================================================

[Threading]: Waiting for Thread Exit

[Threading]: Starting Thread on Core(#3)

[INFO] [overrides] no core-specific overrides found at /switch/PCSX-ReARMed/PCSX-ReARMed.cfg.

[INFO] [overrides] no content-dir-specific overrides found at /switch/PCSX-ReARMed/psx.cfg.

[INFO] [overrides] no game-specific overrides found at /switch/PCSX-ReARMed/Jet Ace [E] [SLES-04125] [bin+cue].cfg.

[INFO] Environ GET_LOG_INTERFACE.

[INFO] Environ SET_VARIABLES.

[INFO] Redirecting save file to "/switch/psx/Jet Ace [E] [SLES-04125] [bin+cue].srm".

[INFO] Redirecting savestate to "/switch/psx/Jet Ace [E] [SLES-04125] [bin+cue].state".

Starting PCSX-ReARMed 0

Running PCSX Version 1.9 (Jun 13 2018).

psxMap: warning: wanted to map @80000000, got 0xdf1856020

psxMap: warning: wanted to map @77000000, got 0xdf1856020

psxMap: warning: wanted to map @f2000000, got 0xdf1856020

psxMap: warning: wanted to map @f1860000, got 0xdf1856020

psxMap: warning: wanted to map @1f800000, got 0xdf1a66030

psxMap: warning: wanted to map @f2000000, got 0xdf1a66030

psxMap: warning: wanted to map @f1a70000, got 0xdf1a66030

psxMap: warning: wanted to map @1fc00000, got 0xdf1a76040

psxMap: warning: wanted to map @f2000000, got 0xdf1a76040

psxMap: warning: wanted to map @f1a80000, got 0xdf1a76040

Mapped (RAM/scrp/ROM/LUTs/TC):

f1856020/f1a66030/f1a76040/00000000/00000000

[WARN] SYSTEM DIR is empty, assume CONTENT DIR /switch/psx/Jet Ace [E] [SLES-04125] [bin+cue].bin

[INFO] Environ SYSTEM_DIRECTORY: "/switch/psx/".

no BIOS files found.

[INFO] Environ SET_MESSAGE: No PlayStation BIOS file found - add for better compatibility

[INFO] Environ GET_CAN_DUPE: true

[INFO] Environ SET_DISK_CONTROL_INTERFACE.

[INFO] Environ GET_RUMBLE_INTERFACE.

[INFO] Environ GET_VARIABLE pcsx_rearmed_frameskip: not implemented.


I think needs correct implementation of mmap/mprotect funcs.

Sources - https://github.com/rock88/pcsx_rearmed/tree/switch
 
  • Like
Reactions: Fadi5555 and m4xw

m4xw

Ancient Deity
OP
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
Code:
/**
 * @brief Maps a memory range into a different range. Mainly used for adding guard pages around stack.
 * Source range gets reprotected to Perm_None (it can no longer be accessed), and \ref MemAttr_IsBorrowed is set in the source \ref MemoryAttribute.
 * @param[in] dst_addr Destination address.
 * @param[in] src_addr Source address.
 * @param[in] size Size of the range.
 * @return Result code.
 * @note Syscall number 0x04.
 */
Result svcMapMemory(void* dst_addr, void* src_addr, u64 size);

/**
 * @brief Unmaps a region that was previously mapped with \ref svcMapMemory.
 * @param[in] dst_addr Destination address.
 * @param[in] src_addr Source address.
 * @param[in] size Size of the range.
 * @return Result code.
 * @note Syscall number 0x05.
 */
Result svcUnmapMemory(void* dst_addr, void* src_addr, u64 size);


/**
* @brief Set the memory permissions of a (page-aligned) range of memory.
* @param[in] addr Start address of the range.
* @param[in] size Size of the range, in bytes.
* @param[in] perm Permissions (see \ref Permission).
* @return Result code.
* @remark Perm_X is not allowed. Setting write-only is not allowed either (Perm_W).
* This can be used to move back and forth between Perm_None, Perm_R and Perm_Rw.
* @note Syscall number 0x01.
*/
Result svcSetMemoryPermission(void* addr, u64 size, u32 perm);

/**
* @brief Set the memory attributes of a (page-aligned) range of memory.
* @param[in] addr Start address of the range.
* @param[in] size Size of the range, in bytes.
* @param[in] val0 State0
* @param[in] val1 State1
* @return Result code.
* @remark See <a href="http://switchbrew.org/index.php?title=SVC#svcSetMemoryAttribute">switchbrew.org Wiki</a> for more details.
* @note Syscall number 0x02.
*/
Result svcSetMemoryAttribute(void* addr, u64 size, u32 val0, u32 val1);
 

Fadi5555

Well-Known Member
Member
Joined
Jan 3, 2018
Messages
499
Trophies
0
Age
35
XP
2,388
Country
United States
It actually plays suprisingly good, IF it launches like at all.

Not sure if the core just is buggy, or maybe its a good stress test for my code.

I just feel like different cores need slightly different code for some parts.

Btw you should probably try to re-do the makefile. I looked at it (and it sucks ass).

A clean libnx makefile would be nice.

--------------------- MERGED ---------------------------



Can you try with video_threaded off and vsync off in Settings->Video ?

It will suck, just wanna know if it will crash
Yeah you’re right I tried to switch off video-threaded and vsync off and it runs both snes and vba but unfortunately There’s no response for all of the buttons at all and the sound is a little bit stutter.
 

m4xw

Ancient Deity
OP
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
Is SNES and NES working for 5.1.0?

Yes

-------------------------------------------------------------------------------------------------

BEETLE-PSX TEST RELEASE
Notes: USE AS IS, Audio is disabled via code (else its pure luck right now if the Game starts)
You NEED a BIOS File either in your set BIOS Dir, or in the same Folder as your ROM's
Where you get the BIOS, thats your concern.

Saving does work, load saves does NOT (had to remove it).

Save STATES work fine!


More Information: https://docs.libretro.com/library/beetle_psx/#bios

VSync off could help in certain ROM's

THIS IS A TEST RELEASE, DON'T EXPECT TOO MUCH
THIS MIGHT NOT WORK < 4.1 AS THIS IS THE THREADING BRANCH

FEEDBACK ON PERFORMANCE AND "FEELING" IS REQUESTED

i hope i didn't forget something

Download:
https://m4xw.net/nextcloud/index.php/s/7LsREjZHadpEwdR

Please don't share this link, either link to this post or re-upload.
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,962
Trophies
0
Website
www.youtube.com
XP
2,585
Country
Morocco
BEETLE-PSX TEST RELEASE
Notes: USE AS IS, Audio is disabled via code (else its pure luck right now if the Game starts)
You NEED a BIOS File either in your set BIOS Dir, or in the same Folder as your ROM's
Where you get the BIOS, thats your concern.

Saving does work, load saves does NOT (had to remove it).

Save STATES work fine!


More Information: https://docs.libretro.com/library/beetle_psx/#bios

VSync off could help in certain ROM's

THIS IS A TEST RELEASE, DON'T EXPECT TOO MUCH
THIS MIGHT NOT WORK < 4.1 AS THIS IS THE THREADING BRANCH

FEEDBACK ON PERFORMANCE AND "FEELING" IS REQUESTED

i hope i didn't forget something

Download:
https://m4xw.net/nextcloud/index.php/s/7LsREjZHadpEwdR

Please don't share this link, either link to this post or re-upload.
I'm impersonating a rocket launch right now. WHOOOSHH
 

Phenj

Well-Known Member
Member
Joined
May 22, 2018
Messages
493
Trophies
0
XP
1,895
Country
Italy
Yes

-------------------------------------------------------------------------------------------------

BEETLE-PSX TEST RELEASE
Notes: USE AS IS, Audio is disabled via code (else its pure luck right now if the Game starts)
You NEED a BIOS File either in your set BIOS Dir, or in the same Folder as your ROM's
Where you get the BIOS, thats your concern.

Saving does work, load saves does NOT (had to remove it).

Save STATES work fine!


More Information: https://docs.libretro.com/library/beetle_psx/#bios

VSync off could help in certain ROM's

THIS IS A TEST RELEASE, DON'T EXPECT TOO MUCH
THIS MIGHT NOT WORK < 4.1 AS THIS IS THE THREADING BRANCH

FEEDBACK ON PERFORMANCE AND "FEELING" IS REQUESTED

i hope i didn't forget something

Download:
https://m4xw.net/nextcloud/index.php/s/7LsREjZHadpEwdR

Please don't share this link, either link to this post or re-upload.
Seems not working to me, tried Crash Bash (US) and ofc used US bios too
 

m4xw

Ancient Deity
OP
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,958
Country
Germany
Found the problem, didn't notice the extensions was ".bIn", i didn't have my glasses on lol.
Works fine now
Now, how does FPS feel? (vsnyc off too)

I feel like for most parts fps is actually fine, but are the games slowed down or were they always like that?
 

Phenj

Well-Known Member
Member
Joined
May 22, 2018
Messages
493
Trophies
0
XP
1,895
Country
Italy
Now, how does FPS feel? (vsnyc off too)

I feel like for most parts fps is actually fine, but are the games slowed down or were they always like that?
vsync off, quite smooth i'd say. There are some fps frop

--------------------- MERGED ---------------------------

Now, how does FPS feel? (vsnyc off too)

I feel like for most parts fps is actually fine, but are the games slowed down or were they always like that?
mhh no idea about the slowed down thing, haven't played ps1 games in a while lol
 
  • Like
Reactions: razorG858
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night