Skip to content

Commit

Permalink
Make busy / GC animation a bit faster while on battery
Browse files Browse the repository at this point in the history
It's really too skippy at the moment.

Signed-off-by: Christophe de Dinechin <[email protected]>
  • Loading branch information
c3d committed Jul 19, 2023
1 parent 1b92348 commit 3f3ab4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ size_t runtime::gc()
record(gc_details, "Recycling %p size %u total %u",
obj, next - obj, recycled);
}
if (count++ % 0x1000 == 0)
if (count++ % 0x400 == 0)
draw_gc();
}

Expand Down
2 changes: 1 addition & 1 deletion src/user_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3109,7 +3109,7 @@ bool user_interface::handle_functions(int key)
}

}
draw_busy();
draw_busy_cursor();
obj->execute();
draw_idle();
dirtyStack = true;
Expand Down
2 changes: 1 addition & 1 deletion src/user_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ inline bool user_interface::draw_busy()
// Draw the annunciators for Shift, Alpha, etc
// ----------------------------------------------------------------------------
{
if (busy++ % 0x400 == 0)
if (busy++ % 0x200 == 0)
return draw_busy_cursor();
return false;
}
Expand Down

0 comments on commit 3f3ab4b

Please sign in to comment.