From 871577064917714ebcacaf0dcbc6f61c9a8ac1ca Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 14 Sep 2022 21:56:02 +0200 Subject: [PATCH] prevented GPU glitches when rendering long bands --- hypgraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 46e2eeed..c59b0a39 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -2781,7 +2781,7 @@ EX void optimize_shift(shiftpoint& h) { } EX void optimize_shift(shiftmatrix& T) { - if(((mdinf[pmodel].flags & mf::uses_bandshift) && T[LDIM][LDIM] > 1e6) || (sphere && pmodel == mdSpiral)) { + if(((mdinf[pmodel].flags & mf::uses_bandshift) && T[LDIM][LDIM] > 30) || (sphere && pmodel == mdSpiral)) { T.T = spin(pconf.model_orientation * degree) * T.T; hyperpoint H = tC0(T.T); find_zlev(H);