You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/logic/index.zig
+6-14Lines changed: 6 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -673,29 +673,21 @@ pub fn updateCache() void {
673
673
1/shared.render_scale,
674
674
true,
675
675
);
676
-
constinit_width=bounds[0].distance(bounds[1]) *shared.render_scale; // * shared.render_scale to revert to logical scale, nothing screen/camera/zoom related
677
-
constinitial_size=texture_size.get_size(bounds);
678
-
constinit_cache_scale=initial_size.w/init_width;
679
676
680
-
// Cost control: scale down texture if blur cost is too high
constinit_width=bounds[0].distance(bounds[1]) *shared.render_scale; // * shared.render_scale to revert to logical scale, nothing screen/camera/zoom related
49
+
50
+
constinit_cache_scale=size.w/init_width;
51
+
varsigma=Point{
52
+
.x=gaussianBlur.x*init_cache_scale,
53
+
.y=gaussianBlur.y*init_cache_scale,
54
+
};
47
55
48
56
// Cost control: scale down texture if blur cost is too high
0 commit comments