Add game speed controls to the embedded game window

This commit is contained in:
DexterFstone
2025-06-07 21:47:43 -07:00
parent abbe792575
commit 7ddce8ab26
10 changed files with 173 additions and 11 deletions

View File

@ -157,7 +157,7 @@ void VideoStreamPlayer::_notification(int p_notification) {
double delta = first_frame ? 0 : get_process_delta_time();
first_frame = false;
resampler.set_playback_speed(Engine::get_singleton()->get_time_scale() * speed_scale);
resampler.set_playback_speed(Engine::get_singleton()->get_effective_time_scale() * speed_scale);
playback->update(delta * speed_scale); // playback->is_playing() returns false in the last video frame