Q: what's faster in VRAM Same tpage?

General Programming help in C, C++ or ASM, Compiling / Debugging, and R3000A Central Processing Unit (CPU) information
Post Reply
User avatar
gwald
Verified
Net Yaroze Enthusiast
Net Yaroze Enthusiast
Posts: 282
Joined: Sep 18, 2013
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Contact:

Q: what's faster in VRAM Same tpage?

Post by gwald » May 22nd, 2017, 11:45 am

1: A large single 120x 24 GsSprite, which is mostly blank (transparent)
2: Or 2 smaller 24x24 GsSprites

I know in openGL, #2 is faster, but I know LibGS has render call overheads.
Anyone know?
Last edited by gwald on May 22nd, 2017, 7:35 pm, edited 1 time in total.

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » May 22nd, 2017, 4:25 pm

Well if you have one large image, the PSX doesn't have to reference so many positions in the framebuffer, so in theory, that would be the quickest. Usually less instructions means the system will execute quicker. Don't think you'll know for sure though unless you compare with a DTL-H2700.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Orion_
Verified
Legendary Programmer
Legendary Programmer
Posts: 240
Joined: Aug 13, 2012
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Post by Orion_ » May 22nd, 2017, 9:17 pm

try to bench it.
display 100 sprites with method 1 then using method 2, and measure it using the value returned by Vsync.

GsSortSprite_WithMethod1();
cpu_time = VSync(1);
DrawSync(0);
gpu_time = VSync(0);
GsSwapDispBuff();
...
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
gwald
Verified
Net Yaroze Enthusiast
Net Yaroze Enthusiast
Posts: 282
Joined: Sep 18, 2013
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Contact:

Post by gwald » May 23rd, 2017, 3:23 pm

Cool, thanks both for the replies

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest