From a97fa8a95dd5e7fc9731ba63e5d3a9d0863b0c11 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 9 Oct 2021 11:09:45 +0200 Subject: [PATCH] ray:: special maxstep and max_iter for intra --- raycaster.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/raycaster.cpp b/raycaster.cpp index 44a41132..b0ea9124 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -41,6 +41,7 @@ EX int gms_array_size = 16; EX ld maxstep_sol = .05; EX ld maxstep_nil = .1; EX ld maxstep_pro = .5; +EX ld maxstep_intra = .05; EX ld minstep = .001; EX ld reflect_val = 0; @@ -49,6 +50,7 @@ static const int NO_LIMIT = 999999; EX ld hard_limit = NO_LIMIT; +EX int max_iter_intra = 600; EX int max_iter_sol = 600; EX int max_iter_iso = 60; EX int max_iter_eyes = 200; @@ -63,7 +65,7 @@ EX ld& exp_decay_current() { } EX int& max_iter_current() { - if(intra::in) return max_iter_iso; + if(intra::in) return max_iter_intra; if(nonisotropic || stretch::in()) return max_iter_sol; else if(is_eyes()) return max_iter_eyes; else return max_iter_iso; @@ -86,6 +88,7 @@ EX bool horos() { } ld& maxstep_current() { + if(intra::in) return maxstep_intra; if(sn::in() || stretch::in()) return maxstep_sol; #if CAP_VR if(vrhr::active() && vrhr::eyes == vrhr::eEyes::equidistant)