forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Media Engine ^ 2 [solved]

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Mon Jul 31, 2006 5:40 am    Post subject: Media Engine ^ 2 [solved] Reply with quote

Hello,

I'm using the Media Engine as an addictional CPU and i get it working writing a simple threading routine. Now some of my code is performed by the ME and is communicating with the allegrex with some uncached variables.

Ok then my question is, how is clocked the Media Engine by default? It seems that is slower than the main cpu. How can i overclock the media engine?

Thanks

EDIT: I would like to know also how to flush the media engine cache. Thanks


Last edited by siberianstar on Mon Jul 31, 2006 10:26 am; edited 1 time in total
Back to top
View user's profile Send private message
edepot



Joined: 09 Apr 2005
Posts: 111

PostPosted: Mon Jul 31, 2006 6:15 am    Post subject: your question Reply with quote

Can you post your code sample? The smallest (compile-able and run-able) sample that shows how you initiate the other cpu and tell it what functions are to be run. If it is like threads, show how they synch up and pass TLS (or maybe they share main memory?)
Back to top
View user's profile Send private message
siberianstar



Joined: 22 Jun 2006
Posts: 70

PostPosted: Mon Jul 31, 2006 6:25 am    Post subject: Reply with quote

Yes they just share the main memory. It's difficult because the code is integrated into my 3d engine.

But can anyone reply to my first questions ?
Thanks a lot
Back to top
View user's profile Send private message
jonny



Joined: 22 Sep 2005
Posts: 351

PostPosted: Mon Jul 31, 2006 6:05 pm    Post subject: Reply with quote

http://jonny.leffe.dnsalias.com/pmp_mod/rar2/pmp_mod_2_02_source.rar

search for me.c (there is an equivalent of sceKernelDcacheWritebackInvalidateAll - only be sure to call it with the me ;)

this thread is also intersting: http://forums.ps2dev.org/viewtopic.php?t=2652

and, the me is clocked like the main cpu

EDIT: ops, sorry, i've not paid attention on the tag "solved" :)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group