diff options
| author | 2018-01-07 00:58:06 -0500 | |
|---|---|---|
| committer | 2018-01-07 00:58:06 -0500 | |
| commit | 79e0dd249e2cff0a0554663a050c1b35499cc13e (patch) | |
| tree | b7384d673add9b2a8dd19183f8660de549a646d4 /src | |
| parent | svc: Implement svcWaitProcessWideKeyAtomic. (diff) | |
| download | yuzu-79e0dd249e2cff0a0554663a050c1b35499cc13e.tar.gz yuzu-79e0dd249e2cff0a0554663a050c1b35499cc13e.tar.xz yuzu-79e0dd249e2cff0a0554663a050c1b35499cc13e.zip | |
core_timing: Increase clock speed for Switch docked.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/core_timing.cpp | 2 | ||||
| -rw-r--r-- | src/core/core_timing.h | 2 | ||||
| -rw-r--r-- | src/core/hw/gpu.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 5e2a5d00f..c90e62385 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include "core/core.h" | 13 | #include "core/core.h" |
| 14 | #include "core/core_timing.h" | 14 | #include "core/core_timing.h" |
| 15 | 15 | ||
| 16 | int g_clock_rate_arm11 = BASE_CLOCK_RATE_ARM11; | 16 | int g_clock_rate_arm11 = BASE_CLOCK_RATE; |
| 17 | 17 | ||
| 18 | // is this really necessary? | 18 | // is this really necessary? |
| 19 | #define INITIAL_SLICE_LENGTH 20000 | 19 | #define INITIAL_SLICE_LENGTH 20000 |
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 897350801..92c811af6 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | // inside callback: | 21 | // inside callback: |
| 22 | // ScheduleEvent(periodInCycles - cycles_late, callback, "whatever") | 22 | // ScheduleEvent(periodInCycles - cycles_late, callback, "whatever") |
| 23 | 23 | ||
| 24 | constexpr int BASE_CLOCK_RATE_ARM11 = 268123480; | 24 | constexpr int BASE_CLOCK_RATE = 383778816; // Switch clock speed is 384MHz docked |
| 25 | extern int g_clock_rate_arm11; | 25 | extern int g_clock_rate_arm11; |
| 26 | 26 | ||
| 27 | inline s64 msToCycles(int ms) { | 27 | inline s64 msToCycles(int ms) { |
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index c828a776e..4826d9c79 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -29,7 +29,7 @@ namespace GPU { | |||
| 29 | Regs g_regs; | 29 | Regs g_regs; |
| 30 | 30 | ||
| 31 | /// 268MHz CPU clocks / 60Hz frames per second | 31 | /// 268MHz CPU clocks / 60Hz frames per second |
| 32 | const u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE_ARM11 / SCREEN_REFRESH_RATE); | 32 | const u64 frame_ticks = static_cast<u64>(BASE_CLOCK_RATE / SCREEN_REFRESH_RATE); |
| 33 | /// Event id for CoreTiming | 33 | /// Event id for CoreTiming |
| 34 | static int vblank_event; | 34 | static int vblank_event; |
| 35 | 35 | ||