diff options
Diffstat (limited to 'src/core/hw')
| -rw-r--r-- | src/core/hw/gpu.cpp | 2 | ||||
| -rw-r--r-- | src/core/hw/gpu.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index ec2d0e156..f0ca4eada 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -17,8 +17,6 @@ namespace GPU { | |||
| 17 | 17 | ||
| 18 | Registers g_regs; | 18 | Registers g_regs; |
| 19 | 19 | ||
| 20 | static const u32 kFrameTicks = 268123480 / 60; ///< 268MHz / 60 frames per second | ||
| 21 | |||
| 22 | u64 g_last_ticks = 0; ///< Last CPU ticks | 20 | u64 g_last_ticks = 0; ///< Last CPU ticks |
| 23 | 21 | ||
| 24 | /** | 22 | /** |
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h index f26f25e98..3314ba989 100644 --- a/src/core/hw/gpu.h +++ b/src/core/hw/gpu.h | |||
| @@ -8,6 +8,9 @@ | |||
| 8 | 8 | ||
| 9 | namespace GPU { | 9 | namespace GPU { |
| 10 | 10 | ||
| 11 | static const u32 kFrameCycles = 268123480 / 60; ///< 268MHz / 60 frames per second | ||
| 12 | static const u32 kFrameTicks = kFrameCycles / 3; ///< Approximate number of instructions/frame | ||
| 13 | |||
| 11 | struct Registers { | 14 | struct Registers { |
| 12 | enum Id : u32 { | 15 | enum Id : u32 { |
| 13 | FramebufferTopLeft1 = 0x1EF00468, // Main LCD, first framebuffer for 3D left | 16 | FramebufferTopLeft1 = 0x1EF00468, // Main LCD, first framebuffer for 3D left |