summaryrefslogtreecommitdiff
path: root/src/core/core_timing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_timing.cpp')
-rw-r--r--src/core/core_timing.cpp10
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() {
459} 459}
460 460
461void ForceCheck() { 461void ForceCheck() {
462 int cycles_executed = g_slice_length - Core::g_app_core->down_count; 462 s64 cycles_executed = g_slice_length - Core::g_app_core->down_count;
463 global_timer += cycles_executed; 463 global_timer += cycles_executed;
464 // This will cause us to check for new events immediately. 464 // This will cause us to check for new events immediately.
465 Core::g_app_core->down_count = 0; 465 Core::g_app_core->down_count = 0;
@@ -468,7 +468,7 @@ void ForceCheck() {
468} 468}
469 469
470void Advance() { 470void Advance() {
471 int cycles_executed = g_slice_length - Core::g_app_core->down_count; 471 s64 cycles_executed = g_slice_length - Core::g_app_core->down_count;
472 global_timer += cycles_executed; 472 global_timer += cycles_executed;
473 Core::g_app_core->down_count = g_slice_length; 473 Core::g_app_core->down_count = g_slice_length;
474 474
@@ -504,13 +504,13 @@ void LogPendingEvents() {
504} 504}
505 505
506void Idle(int max_idle) { 506void Idle(int max_idle) {
507 int cycles_down = Core::g_app_core->down_count; 507 s64 cycles_down = Core::g_app_core->down_count;
508 if (max_idle != 0 && cycles_down > max_idle) 508 if (max_idle != 0 && cycles_down > max_idle)
509 cycles_down = max_idle; 509 cycles_down = max_idle;
510 510
511 if (first && cycles_down > 0) { 511 if (first && cycles_down > 0) {
512 int cycles_executed = g_slice_length - Core::g_app_core->down_count; 512 s64 cycles_executed = g_slice_length - Core::g_app_core->down_count;
513 int cycles_next_event = (int)(first->time - global_timer); 513 s64 cycles_next_event = first->time - global_timer;
514 514
515 if (cycles_next_event < cycles_executed + cycles_down) { 515 if (cycles_next_event < cycles_executed + cycles_down) {
516 cycles_down = cycles_next_event - cycles_executed; 516 cycles_down = cycles_next_event - cycles_executed;