Skip to content

Optimize Drawing Speed #492

@stoplime

Description

@stoplime

Medium priority optimization
Drawing speed:
When drawing around 1000 basic shapes (I.e lines) the simulation computation speed drops significantly. In some cases, this can cause misinterpretations in algorithm performance and the developer needs to be mindful at the drawing speed of something that seems relatively simple.

There could be a few suggestions for solving this:

  • Group shapes together that are similar (for example, if there are 100 small line segments lined up end to end, it can be grouped together into a single long line.)
  • Limit the number of drawn shapes.
  • Camera occlusion/ frustum culling, where only shapes in the camera view is rendered (not sure if this is already implemented)
  • Levels of detail, where it limits the levels of detail being rendered when they are outside a certain range from the camera.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions