diff options
author | Subv <subv2112@gmail.com> | 2015-02-01 21:31:21 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-02-12 15:25:35 +0100 |
commit | 8e2b248e05c99c9cf505a351bc9234cedd5fa3b4 (patch) | |
tree | 05f18714a93d28999c259f4cd86c261deaf659b2 /src/core/core_timing.cpp | |
parent | Merge pull request #384 from neobrain/vertex_shader_debugger (diff) | |
download | yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.tar yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.tar.gz yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.tar.bz2 yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.tar.lz yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.tar.xz yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.tar.zst yuzu-8e2b248e05c99c9cf505a351bc9234cedd5fa3b4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core_timing.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index d96d3fe16..a88a5dd17 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -459,7 +459,7 @@ void MoveEvents() { } void ForceCheck() { - int cycles_executed = g_slice_length - Core::g_app_core->down_count; + s64 cycles_executed = g_slice_length - Core::g_app_core->down_count; global_timer += cycles_executed; // This will cause us to check for new events immediately. Core::g_app_core->down_count = 0; @@ -468,7 +468,7 @@ void ForceCheck() { } void Advance() { - int cycles_executed = g_slice_length - Core::g_app_core->down_count; + s64 cycles_executed = g_slice_length - Core::g_app_core->down_count; global_timer += cycles_executed; Core::g_app_core->down_count = g_slice_length; @@ -504,13 +504,13 @@ void LogPendingEvents() { } void Idle(int max_idle) { - int cycles_down = Core::g_app_core->down_count; + s64 cycles_down = Core::g_app_core->down_count; if (max_idle != 0 && cycles_down > max_idle) cycles_down = max_idle; if (first && cycles_down > 0) { - int cycles_executed = g_slice_length - Core::g_app_core->down_count; - int cycles_next_event = (int)(first->time - global_timer); + s64 cycles_executed = g_slice_length - Core::g_app_core->down_count; + s64 cycles_next_event = first->time - global_timer; if (cycles_next_event < cycles_executed + cycles_down) { cycles_down = cycles_next_event - cycles_executed; |