diff options
author | Ben Bridle <ben@derelict.engineering> | 2024-07-31 15:30:20 +1200 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2024-07-31 15:30:20 +1200 |
commit | 3ab32debad4fcfc73df7c60ea46df619ca60a579 (patch) | |
tree | 2f9054daffee31a13cc67e742aa34c6db4322119 /src/devices | |
parent | c3ff1b843a486832b739803d113558d7ee7144c1 (diff) | |
download | bedrock-pc-3ab32debad4fcfc73df7c60ea46df619ca60a579.zip |
Improve frame-rate stability
Some frames would sporadically lag between on_process and on_render,
because on_process would bail once one frame had elapsed since the end
of the previous on_process, and the processor would not always reach a
sleep point in this time. This was really an issue to do with with the
time taken between the end of the previous on_process and the start of
the current on_process.
To fix this, the on_process invocation will run the processor for a full
frame, without subtracting the time elapsed between frames. This seems
to have no negative effects. It also allows us to remove end_of_process
from the emulator.
The sleep in the Signal::Sleep handler has also been removed, because
it serves no real purpose and will most likely cause issues in the
future.
Diffstat (limited to 'src/devices')
0 files changed, 0 insertions, 0 deletions