nilrider:: reduce quality feature

This commit is contained in:
Zeno Rogue 2022-05-06 21:08:15 +02:00
parent 6d8ce6db68
commit acfc18b6a8
4 changed files with 5 additions and 1 deletions

View File

@ -95,6 +95,7 @@ void level::init_shapes() {
int prec = 16;
if(s == 2) prec *= 4;
int cdiv = prec / steps_per_block;
prec >>= reduce_quality;
bool need_uniltinf = uniltinf.tvertices.empty();

View File

@ -545,6 +545,7 @@ auto celldemo = arg::add3("-unilcycle", initialize) + arg::add3("-unilplan", []
+ arg::add3("-nilgeo", nil_set_geodesic)
+ arg::add3("-nilper", nil_set_perspective)
+ arg::add3("-nilrider", initialize_all)
+ arg::add3("-nilrider-q", [] { arg::shift(); reduce_quality = arg::argi(); })
+ addHook(hooks_configfile, 100, [] {
param_f(aimspeed_key_x, "nilrider_key_x")
->editable(-5, 5, 0.1, "navigation sensitivity (keyboard)", "press Left/Right to navigate (lCtrl to fine-tune)", 'n');

View File

@ -206,5 +206,7 @@ extern int reversals;
extern bool loaded_or_planned;
extern bool planning_mode;
inline int reduce_quality = 0;
void save();
}

View File

@ -15,7 +15,7 @@ EX hyperpoint sym_to_heis(hyperpoint H) {
}
void timestamp::draw_unilcycle(const shiftmatrix& V) {
const int points = 60;
const int points = 60 / (1 + reduce_quality);
const int spoke_each = 5;
hyperpoint whpoint[points+1];