mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 17:00:57 +01:00
core_timing: Increase clock speed for Switch docked.
This commit is contained in:
parent
5017038ca7
commit
79e0dd249e
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/core_timing.h"
|
#include "core/core_timing.h"
|
||||||
|
|
||||||
int g_clock_rate_arm11 = BASE_CLOCK_RATE_ARM11;
|
int g_clock_rate_arm11 = BASE_CLOCK_RATE;
|
||||||
|
|
||||||
// is this really necessary?
|
// is this really necessary?
|
||||||
#define INITIAL_SLICE_LENGTH 20000
|
#define INITIAL_SLICE_LENGTH 20000
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
// inside callback:
|
// inside callback:
|
||||||
// ScheduleEvent(periodInCycles - cycles_late, callback, "whatever")
|
// ScheduleEvent(periodInCycles - cycles_late, callback, "whatever")
|
||||||
|
|
||||||
constexpr int BASE_CLOCK_RATE_ARM11 = 268123480;
|
constexpr int BASE_CLOCK_RATE = 383778816; // Switch clock speed is 384MHz docked
|
||||||
extern int g_clock_rate_arm11;
|
extern int g_clock_rate_arm11;
|
||||||
|
|
||||||
inline s64 msToCycles(int ms) {
|
inline s64 msToCycles(int ms) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace GPU {
|
||||||
Regs g_regs;
|
Regs g_regs;
|
||||||
|
|
||||||
/// 268MHz CPU clocks / 60Hz frames per second
|
/// 268MHz CPU clocks / 60Hz frames per second
|
||||||
const u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE_ARM11 / SCREEN_REFRESH_RATE);
|
const u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE / SCREEN_REFRESH_RATE);
|
||||||
/// Event id for CoreTiming
|
/// Event id for CoreTiming
|
||||||
static int vblank_event;
|
static int vblank_event;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue