Round internal resolution

This commit is contained in:
korenkonder
2024-12-12 17:03:38 +03:00
parent 0fef2eb9fa
commit 41ffdf9477
+2 -7
View File
@@ -1494,16 +1494,11 @@ namespace rndr {
}
}
else {
/*float_t round_val = ssaa ? 1.0f : 16.0f;
float_t round_val = ssaa ? 1.0f : 16.0f;
render_width[0] = (int32_t)(prj::ceilf((float_t)screen_width
* (float_t)inner_width / (float_t)width * (1.0f / round_val)) * round_val);
render_height[0] = (int32_t)(prj::ceilf((float_t)screen_height
* (float_t)inner_height / (float_t)height * (1.0f / round_val)) * round_val);*/
render_width[0] = (int32_t)prj::ceilf((float_t)screen_width
* (float_t)inner_width / (float_t)width);
render_height[0] = (int32_t)prj::ceilf((float_t)screen_height
* (float_t)inner_height / (float_t)height);
* (float_t)inner_height / (float_t)height * (1.0f / round_val)) * round_val);
}
int32_t downsample = 1;