Added workaround for async screenshots.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in 18s

This commit is contained in:
Willem Cazander 2024-07-14 14:38:32 +02:00
parent ef798ffe5c
commit 48de748ae8
2 changed files with 17 additions and 9 deletions

View file

@ -121,8 +121,8 @@ When you want to see whats happening do a debug run;
time VERBOSE=on DEBUG=on MB_OPENMSX_HEADLESS=off MB_OPENMSX_THROTTLE=on MB_OPENMSX_SPEED=100 make @package-qa
real 2m37.379s
record run with screenshot on exit; (black screens without throttle)
time MB_OPENMSX_HEADLESS=off MB_OPENMSX_THROTTLE=on MB_FLIGHT_SCREEN=on make @package-qa
record build run with screenshot on exit;
time MB_OPENMSX_HEADLESS=off MB_FLIGHT_SCREEN=on make @build
real 2m40.784s
record run with video per session and merge to one video file;
@ -156,13 +156,13 @@ When you want to see whats happening do a debug run;
* Only all all 16 bit unicode fonts because unicode is 21 bit but imgui is not
* (FIXED:rm-SDL) Bug: screenshots sometimes segfaults when using SDL renderer
* Screenshots don't work without throttle
* (FIXED:add-issue) Screenshots don't work without throttle
* (FIXED++) Audio device init option + warning messages on computer without sound card
* MIDI device init option + warning messages on computer without sound card
* Enhancing the IDE CD-ROM support
* Allow `<type>IDEHD</type><DeviceName>OPENMSX IDEHD</DeviceName>` now hardcoded in IDEHD.CC:37 + update default for mode 40
* Diskmanipulator export (sync) fully non-cased filename compare (duplicates)
* Diskmanipulator export (sync) don't touch/overwrite unmodified files
* (#1669) MIDI device init option + warning messages on computer without sound card
* (#1671) Enhancing the IDE CD-ROM support
* (#1704) Allow `<type>IDEHD</type><DeviceName>OPENMSX IDEHD</DeviceName>` now hardcoded in IDEHD.CC:37 + update default for mode 40
* (#1705) Diskmanipulator export (sync) fully non-cased filename compare (duplicates)
* (#1705) Diskmanipulator export (sync) don't touch/overwrite unmodified files
* Diskmanipulator reuse the device defined filename
* Diskmanipulator Imported folders in openMSX; `cd utils;cd ..;dir` breaks, use `cd utils:cd a:\;dir` as workaround
* run instance-id or run/process-label to replace hardcoded "untitled1" path

View file

@ -32,7 +32,15 @@ proc night_flight_save_screenshot {{prefix_id 0}} {
} else {
set file_prefix "$night_flight_prefix$night_flight_seperator"
}
screenshot -prefix $file_prefix
global throttle
global speed
set old_throttle [set throttle]
set old_speed [set speed]
set throttle on
set speed 100
after time 1 "screenshot -prefix $file_prefix"
after time 2 "set throttle $old_throttle"
after time 2 "set speed $old_speed"
return "mb::save flight screenshot"
}