PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Start a log and update it occasionally with your projects progress
User avatar
ArthCarvalho
Active PSXDEV User
Active PSXDEV User
Posts: 35
Joined: January 29th, 2016, 2:45 am
I am a: Artist, Programmer
PlayStation Model: SCPH-103

Re: PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Post by ArthCarvalho » November 18th, 2019, 3:43 pm

Do you plan on making a benchmark on both your SDK and PSY-Q to compare performance?
That'd be really interesting, not only a fresh implementation, but more optimized and using a newer compiler should give it some boost in performance.

I'm looking forward when the lib is more developed so I can port my project into it. For now, I've been using some functions from your code in my project, it's been really helpful. (isin, icos, tri_crop, quad_crop, and a few others)

Are you going to implement a VAB/SEQ player in the future?

User avatar
LameGuy64
Psy-Q Enthusiast
Psy-Q Enthusiast
Posts: 381
Joined: April 10th, 2013, 3:47 pm
I am a: Hobbyist Game Developer
Motto: Commercial or not, play it!
PlayStation Model: H2000/7000
Location: Philippines
Contact:

Re: PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Post by LameGuy64 » November 18th, 2019, 7:12 pm

My libraries should perform a lot better than Sony's original libraries, as the latter is comprised mostly of unoptimized compiler generated code and other bloat whereas PSn00bSDK's libraries are a mix of optimized compiler generated and assembly. Programs compiled with PSn00bSDK usually yields a much smaller binary compared to an identical program compiled with PsyQ.

I probably won't implement support for VAB/SEQ anytime soon but instead opt to develop a new and possibly more powerful sequenced music format. The SPU libraries need to be developed first so its likely going to take a long while for a sequenced music framework to be implemented. In the meantime folks have to write their own music systems from scratch. Should include a hardware timer example which I forgot to include in the last commit.
Please don't forget to include my name if you share my work around. Credit where it is due.

Dev. Console: SCPH-7000 with SCPH-7501 ROM, MM3, PAL color fix, Direct AV ports, DB-9 port for Serial I/O, and a Xplorer FX with Caetla 0.35.

DTL-H2000 PC: Dell Optiplex GX110, Windows 98SE & Windows XP, Pentium III 933MHz, 384MB SDRAM, ATI Radeon 7000 VE 64MB, Soundblaster Audigy, 40GB Seagate HDD, Hitachi Lite-on CD-RW Drive, ZIP 250 and 3.5" Floppy.

User avatar
LameGuy64
Psy-Q Enthusiast
Psy-Q Enthusiast
Posts: 381
Joined: April 10th, 2013, 3:47 pm
I am a: Hobbyist Game Developer
Motto: Commercial or not, play it!
PlayStation Model: H2000/7000
Location: Philippines
Contact:

Re: PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Post by LameGuy64 » November 20th, 2019, 12:56 pm

I just got my own implementation of CdSearchFile() working and used that to get around testing XA audio streaming. I got it working as shown in the video linked below. Audio stutters a lot because my test disc is just trash.

Link to video

I also got XA looping working by simply using the same CdReadyCallback() method used in many implementations. But I noticed something interesting about it is that the ones written for PsyQ/Programmers Tool would issue three CD commands in the callback at once (CdlSetFilter and CdlReadS w/ CdlLOC which internally issues CdlSetloc prior to CdlReadS) whereas the CD controller could only query up to two commands or the command busy status stays on until the IRQ of the last command has been acknowledged as waiting for and acknowledging IRQs in a callback is not possible for callbacks are executed from within the IRQ handler. Perhaps there's some internal command queuing going on in the official SDK where pending commands are sent on acknowledge or completion IRQs.
Please don't forget to include my name if you share my work around. Credit where it is due.

Dev. Console: SCPH-7000 with SCPH-7501 ROM, MM3, PAL color fix, Direct AV ports, DB-9 port for Serial I/O, and a Xplorer FX with Caetla 0.35.

DTL-H2000 PC: Dell Optiplex GX110, Windows 98SE & Windows XP, Pentium III 933MHz, 384MB SDRAM, ATI Radeon 7000 VE 64MB, Soundblaster Audigy, 40GB Seagate HDD, Hitachi Lite-on CD-RW Drive, ZIP 250 and 3.5" Floppy.

User avatar
LameGuy64
Psy-Q Enthusiast
Psy-Q Enthusiast
Posts: 381
Joined: April 10th, 2013, 3:47 pm
I am a: Hobbyist Game Developer
Motto: Commercial or not, play it!
PlayStation Model: H2000/7000
Location: Philippines
Contact:

Re: PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Post by LameGuy64 » November 22nd, 2019, 12:23 pm

Just released the CD-ROM library to the main repo along with a boatload of bugfixes that have accumulated since the last commit. I've also added new hardware timer, render to texture and CD-XA audio examples.

I recommend reading the changelog in the github repository for more details.
Please don't forget to include my name if you share my work around. Credit where it is due.

Dev. Console: SCPH-7000 with SCPH-7501 ROM, MM3, PAL color fix, Direct AV ports, DB-9 port for Serial I/O, and a Xplorer FX with Caetla 0.35.

DTL-H2000 PC: Dell Optiplex GX110, Windows 98SE & Windows XP, Pentium III 933MHz, 384MB SDRAM, ATI Radeon 7000 VE 64MB, Soundblaster Audigy, 40GB Seagate HDD, Hitachi Lite-on CD-RW Drive, ZIP 250 and 3.5" Floppy.

mrhaboobi
Active PSXDEV User
Active PSXDEV User
Posts: 56
Joined: November 18th, 2012, 1:13 pm

Re: PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Post by mrhaboobi » November 27th, 2019, 10:46 am

Lameguy, do you have tutorials or anything on how to use your tools?
Ive not checked and just being lazy and asking :)

HatMusic
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: May 29th, 2014, 8:23 am

Re: PSn00bSDK - Open Source PS1 SDK That Doesn't Suck

Post by HatMusic » November 29th, 2019, 10:53 am

You have no idea how excited I am whenever I hear news about this and the associated engine :D
Keep up the good work! I'm hoping I can learn C with it eventually.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest