mirror of
https://github.com/gopher64/gopher64.git
synced 2026-07-11 01:25:20 +02:00
Improve state load time (#995)
* load state speed improvements * more * more * more
This commit is contained in:
@@ -702,8 +702,9 @@ void rdp_check_framebuffers(uint32_t address, uint32_t length) {
|
||||
|
||||
size_t rdp_state_size() { return sizeof(RDP_DEVICE); }
|
||||
|
||||
void rdp_save_state(uint8_t *state) {
|
||||
processor->wait_for_timeline(processor->signal_timeline());
|
||||
void rdp_save_state(uint8_t *state, bool rewind) {
|
||||
if (!rewind) // speed hack for rewind
|
||||
processor->wait_for_timeline(processor->signal_timeline());
|
||||
memcpy(state, &rdp_device, sizeof(RDP_DEVICE));
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ uint64_t rdp_process_commands();
|
||||
void rdp_onscreen_message(const char *message, MESSAGE_LENGTH milliseconds);
|
||||
void rdp_check_framebuffers(uint32_t address, uint32_t length);
|
||||
size_t rdp_state_size();
|
||||
void rdp_save_state(uint8_t *state);
|
||||
void rdp_save_state(uint8_t *state, bool rewind);
|
||||
void rdp_load_state(GFX_INFO _gfx_info, const uint8_t *state);
|
||||
void rdp_set_fps(uint32_t fps, uint32_t vis);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user