Add back `.prepareGeometryChange()`, seems faster?
parent
2f3d6af4a6
commit
d9f27ade7e
|
@ -342,7 +342,7 @@ class Viz(msgspec.Struct): # , frozen=True):
|
||||||
'''
|
'''
|
||||||
name = self.name
|
name = self.name
|
||||||
profiler = Profiler(
|
profiler = Profiler(
|
||||||
msg=f'{name} -> `{str(self)}.maxmin()`',
|
msg=f'`Viz[{name}].maxmin()`',
|
||||||
disabled=not pg_profile_enabled(),
|
disabled=not pg_profile_enabled(),
|
||||||
ms_threshold=4,
|
ms_threshold=4,
|
||||||
delayed=True,
|
delayed=True,
|
||||||
|
@ -857,15 +857,15 @@ class Viz(msgspec.Struct): # , frozen=True):
|
||||||
# array_key,
|
# array_key,
|
||||||
# index_field=self.index_field,
|
# index_field=self.index_field,
|
||||||
# )
|
# )
|
||||||
graphics.update()
|
|
||||||
profiler('.update()')
|
|
||||||
|
|
||||||
# TODO: does this actuallly help us in any way (prolly should
|
# TODO: does this actuallly help us in any way (prolly should
|
||||||
# look at the source / ask ogi). I think it avoid artifacts on
|
# look at the source / ask ogi). I think it avoid artifacts on
|
||||||
# wheel-scroll downsampling curve updates?
|
# wheel-scroll downsampling curve updates?
|
||||||
# TODO: is this ever better?
|
# TODO: is this ever better?
|
||||||
# graphics.prepareGeometryChange()
|
graphics.prepareGeometryChange()
|
||||||
# profiler('.prepareGeometryChange()')
|
profiler('.prepareGeometryChange()')
|
||||||
|
|
||||||
|
graphics.update()
|
||||||
|
profiler('.update()')
|
||||||
|
|
||||||
# track downsampled state
|
# track downsampled state
|
||||||
self._in_ds = r._in_ds
|
self._in_ds = r._in_ds
|
||||||
|
|
Loading…
Reference in New Issue