timelapse_stay

This commit is contained in:
proller 2019-10-25 19:36:13 +03:00
parent 69b31a1732
commit 70499cbd62
2 changed files with 12 additions and 0 deletions

View File

@ -2233,6 +2233,8 @@ video::SColor TextureSource::getTextureAverageColor(const std::string &name)
video::IImage *image = driver->createImage(texture,
core::position2d<s32>(0, 0),
texture->getOriginalSize());
if (!image)
return c;
u32 total = 0;
u32 tR = 0;
u32 tG = 0;

View File

@ -290,6 +290,15 @@ our $options = {
enable_damage => 0,
continuous_forward => 1,
},
fps1 => {
fps_max => 2,
viewing_range => 1000,
#viewing_range_max => 1000,
wanted_fps => 1,
},
stay => {
continuous_forward => 0,
},
fast => {
fast_move => 1, movement_speed_fast => 30,
},
@ -694,6 +703,7 @@ qq{$config->{vtune_amplifier}amplxe-cl -report $report -report-width=250 -report
timelapse_play => [{-options_int => 'timelapse',}, \'play', 'timelapse_video'], #'
fly => [{-options_int => 'fly_forward', -options_bot => '',}, \'bot',], #'
timelapse_fly => [{-options_int => 'timelapse,fly_forward', -options_bot => '',}, \'bot', 'timelapse_video'], #'
timelapse_stay => [{-options_int => 'timelapse,fly_forward,stay,far,fps1', -options_bot => '',}, \'bot', 'timelapse_video'], #'
bench1 => [{-options_int => 'bench1,fly_forward,fast',}, \'bot'], #'
up => sub {
my $cwd = Cwd::cwd();