mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #107273 from DexterFstone/add-game-speed-controls
Add game speed controls to the embedded game window
This commit is contained in:
commit
3b04c8464c
10 changed files with 173 additions and 11 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue