|
@@ -202,8 +202,7 @@ void RasterizerGLES3::begin_frame(double frame_step) {
|
|
}
|
|
}
|
|
|
|
|
|
double time_roll_over = GLOBAL_GET("rendering/limits/time/time_rollover_secs");
|
|
double time_roll_over = GLOBAL_GET("rendering/limits/time/time_rollover_secs");
|
|
- if (time_total > time_roll_over)
|
|
|
|
- time_total = 0; //roll over every day (should be customz
|
|
|
|
|
|
+ time_total = Math::fmod(time_total, time_roll_over);
|
|
|
|
|
|
storage->frame.time[0] = time_total;
|
|
storage->frame.time[0] = time_total;
|
|
storage->frame.time[1] = Math::fmod(time_total, 3600);
|
|
storage->frame.time[1] = Math::fmod(time_total, 3600);
|
|
@@ -418,8 +417,6 @@ void RasterizerGLES3::register_config() {
|
|
|
|
|
|
GLOBAL_DEF("rendering/quality/filters/anisotropic_filter_level", 4);
|
|
GLOBAL_DEF("rendering/quality/filters/anisotropic_filter_level", 4);
|
|
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/filters/anisotropic_filter_level", PropertyInfo(Variant::INT, "rendering/quality/filters/anisotropic_filter_level", PROPERTY_HINT_RANGE, "1,16,1"));
|
|
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/filters/anisotropic_filter_level", PropertyInfo(Variant::INT, "rendering/quality/filters/anisotropic_filter_level", PROPERTY_HINT_RANGE, "1,16,1"));
|
|
- GLOBAL_DEF("rendering/limits/time/time_rollover_secs", 3600);
|
|
|
|
- ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/time/time_rollover_secs", PropertyInfo(Variant::REAL, "rendering/limits/time/time_rollover_secs", PROPERTY_HINT_RANGE, "0,10000,1,or_greater"));
|
|
|
|
}
|
|
}
|
|
|
|
|
|
RasterizerGLES3::RasterizerGLES3() {
|
|
RasterizerGLES3::RasterizerGLES3() {
|