mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-07 11:31:39 +12:00
Moar Teak LLE
Co-Authored-By: PSISP <12768103+psi-rockin@users.noreply.github.com>
This commit is contained in:
parent
363c71e66c
commit
5dd3c02ffb
10 changed files with 284 additions and 21 deletions
|
@ -10,7 +10,8 @@ struct Scheduler {
|
|||
enum class EventType {
|
||||
VBlank = 0, // End of frame event
|
||||
UpdateTimers = 1, // Update kernel timer objects
|
||||
Panic = 2, // Dummy event that is always pending and should never be triggered (Timestamp = UINT64_MAX)
|
||||
RunDSP = 2, // Make the emulated DSP run for one audio frame
|
||||
Panic = 3, // Dummy event that is always pending and should never be triggered (Timestamp = UINT64_MAX)
|
||||
TotalNumberOfEvents // How many event types do we have in total?
|
||||
};
|
||||
static constexpr usize totalNumberOfEvents = static_cast<usize>(EventType::TotalNumberOfEvents);
|
||||
|
@ -49,6 +50,7 @@ struct Scheduler {
|
|||
// Clear any pending events
|
||||
events.clear();
|
||||
addEvent(Scheduler::EventType::VBlank, arm11Clock / 60);
|
||||
addEvent(Scheduler::EventType::RunDSP, 16384 * 2);
|
||||
|
||||
// Add a dummy event to always keep the scheduler non-empty
|
||||
addEvent(EventType::Panic, std::numeric_limits<u64>::max());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue