Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emilk opened this issue Aug 8, 2024 · 1 comment
Open
Assignees
Labels
🚀 performance Optimization, memory use, etc

Comments

@emilk
Copy link
Member

emilk commented Aug 8, 2024

We currently don't have a good example of this. The best we got is

pixi run py-build-examples && pr -e examples open_photogrammetry_format --no-frames

and

Related issues

@jleibs
Copy link
Member

jleibs commented Oct 17, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 performance Optimization, memory use, etc
Projects
None yet
Development

No branches or pull requests

3 participants