mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
INIT UCode: reduce DSP initialization time
Push the mail at UCode boot time, not after the first update. This avoids a lot of crazy busy-looping on the CPU side while waiting for the DSP to be initialized.
This commit is contained in:
parent
a770cc0778
commit
d5e177d3f9
@ -10,6 +10,7 @@ INITUCode::INITUCode(DSPHLE *dsphle, u32 crc)
|
||||
: UCodeInterface(dsphle, crc)
|
||||
{
|
||||
DEBUG_LOG(DSPHLE, "INITUCode - initialized");
|
||||
m_mail_handler.PushMail(0x80544348);
|
||||
}
|
||||
|
||||
INITUCode::~INITUCode()
|
||||
@ -22,11 +23,6 @@ void INITUCode::Init()
|
||||
|
||||
void INITUCode::Update()
|
||||
{
|
||||
if (m_mail_handler.IsEmpty())
|
||||
{
|
||||
m_mail_handler.PushMail(0x80544348);
|
||||
// HALT
|
||||
}
|
||||
}
|
||||
|
||||
u32 INITUCode::GetUpdateMs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user