if parsing takes long, quit if requested

This commit is contained in:
q
2025-09-03 14:32:18 +03:00
parent 1eb0decc51
commit 61217e034b

View File

@@ -988,7 +988,7 @@ class World:
def interpolate_points_in_thread(self): def interpolate_points_in_thread(self):
self.points_interpolation_frequency = 1 self.points_interpolation_frequency = 0.5
while True: while True:
if self.points_interpolation_thread_exit: if self.points_interpolation_thread_exit:
@@ -998,6 +998,8 @@ class World:
continue continue
for point_index in self.points_interpolation_required: for point_index in self.points_interpolation_required:
if self.points_interpolation_thread_exit:
return
if self.get_interpolation_required(point_index): if self.get_interpolation_required(point_index):
self.interpolate_points(point_index) self.interpolate_points(point_index)