1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

rogueviz::sag:: added -sag-unoptimize

This commit is contained in:
Zeno Rogue 2024-10-20 01:54:06 +02:00
parent b15384aeb8
commit f95832a3cf

View File

@ -286,6 +286,19 @@ void viz_longpath() {
history::create(sagcells[sagid[get_i]].first, sagcells[sagid[get_j]].first, Id);
}
void unoptimize() {
use_cells_to_draw = true;
drawthemap();
for(int i=0; i<isize(vdata); i++) {
vdata[i].m->at = inverse_shift(ggmatrix(cwt.at), ggmatrix(vdata[i].m->base)) * vdata[i].m->at;
vdata[i].m->base = cwt.at;
}
use_cells_to_draw = false;
shmup::fixStorage();
rogueviz::rv_change(dont_optimize, true);
rogueviz::rv_change(frustum_culling, false);
}
int readArgs() {
#if CAP_COMMANDLINE
using namespace arg;
@ -309,6 +322,9 @@ int readArgs() {
else if(argis("-sagsmooth")) {
shift(); sag::sag_ittime = argi();
}
else if(argis("-sag-unoptimize")) {
unoptimize();
}
else return 1;
#endif