Previous Thread
Next Thread
Print Thread
Joined: Aug 2008
Posts: 89
C
Member
OP Offline
Member
C
Joined: Aug 2008
Posts: 89
I found this website with a lot of information about N64 code obscurities and I'm bringing to this forum for everyone interested.
I'm thinking of any of this information can help the devs in any way...

https://olivieryuyu.blogspot.com/

Joined: Dec 2011
Posts: 189
Likes: 2
Senior Member
Offline
Senior Member
Joined: Dec 2011
Posts: 189
Likes: 2
It won't. MAME uses RSP LLE, not HLE, meaning that it emulates the microcode by actually running it. Therefore this information is, for the most part, useless to us AFAIK.

EDIT: Oh wait, this is about optimizing RSP code to run faster anyway, which has no relevance to actually emulating the RSP in the first place.

Last edited by Alegend45; 03/18/20 02:52 PM.
Joined: Mar 2001
Posts: 17,005
Likes: 94
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,005
Likes: 94
It's interesting for doing HLE as well, but yeah, for what we do it's largely not applicable.

Joined: Jun 2001
Posts: 503
Likes: 20
O
Senior Member
Offline
Senior Member
O
Joined: Jun 2001
Posts: 503
Likes: 20
Originally Posted by Alegend45
EDIT: Oh wait, this is about optimizing RSP code to run faster anyway, which has no relevance to actually emulating the RSP in the first place.


Just to be contrary, optimized code tends to use more possibilities of a cpu/dsp, so throughly commented optimized code can be rather useful for debugging.

Joined: May 2009
Posts: 2,119
Likes: 152
J
Very Senior Member
Offline
Very Senior Member
J
Joined: May 2009
Posts: 2,119
Likes: 152
Originally Posted by Olivier Galibert
Originally Posted by Alegend45
EDIT: Oh wait, this is about optimizing RSP code to run faster anyway, which has no relevance to actually emulating the RSP in the first place.


Just to be contrary, optimized code tends to use more possibilities of a cpu/dsp, so throughly commented optimized code can be rather useful for debugging.


And to be equally contrary, none of this seems to really be "optimizing" anything, more just "I think the microcode should work this way, so I'll make it work that way".

Joined: Apr 2010
Posts: 57
H
Member
Offline
Member
H
Joined: Apr 2010
Posts: 57
Having disassembled many different N64 microcodes, I find it sort of interesting. All the microcodes have to deal with the issue of IMEM and DMEM being very limited in size, so there are a few different techniques to stream data in and out. However with respect to MAME, I think more of the issues with MAME's N64 emulation of the RSP are related to timing issues and synchronization with the rest of the N64 components..

Also you can optimize the RSP code all you want, but the RDP and memory bandwidth are still going to be major factors in the overall performance that you can't do much to optimize.

Last edited by Happy; 03/18/20 09:10 PM.

Link Copied to Clipboard
Who's Online Now
1 members (1 invisible), 51 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,189
Posts120,324
Members5,044
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com