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 { Registers g_regs; -static const u32 kFrameTicks = 268123480 / 60; ///< 268MHz / 60 frames per second - u64 g_last_ticks = 0; ///< Last CPU ticks /** 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 @@ namespace GPU { +static const u32 kFrameCycles = 268123480 / 60; ///< 268MHz / 60 frames per second +static const u32 kFrameTicks = kFrameCycles / 3; ///< Approximate number of instructions/frame + struct Registers { enum Id : u32 { FramebufferTopLeft1 = 0x1EF00468, // Main LCD, first framebuffer for 3D left |