Skip to content

Rerun viewer becomes slow when there are several hundreds of entities #7115

Open
@emilk

Description

Activity

jleibs

jleibs commented on Oct 17, 2024

@jleibs
Member

Here's a very simple example that makes the viewer totally unuable:

import rerun as rr

from rerun.datatypes import RotationAxisAngle

rr.init("rerun_example_many_entities", spawn=True)


def one_strip(number_points: int):
    return rr.LineStrips3D(
        [[0.3 if i % 2 == 0 else -0.3, i, 0] for i in range(number_points)],
    )


def rotate(theta: float):
    return rr.Transform3D(
        rotation_axis_angle=RotationAxisAngle(axis=[0, 0, 1], degrees=theta),
        axis_length=0,
    )


def draw_lines(lines_count: int, pts_per_line: int):
    theta_delta = 360 / lines_count
    for i in range(lines_count):
        rr.log(f"line_{i}", rotate(theta_delta * i))
        rr.log(f"line_{i}/strip", one_strip(pts_per_line))

draw_lines(5000, 10)
self-assigned this
on Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Rerun viewer becomes slow when there are several hundreds of entities · Issue #7115 · rerun-io/rerun