Skip to content

Rendered geometry "breaks" when adding many primitives #17766

Closed
@coljnr9

Description

@coljnr9

Bevy version

main after #16985 (72ddac140a985bbfd66f8869110f3ac5e1c22b5c is the commit when bisecting main and v0.15.2)

[Optional] Relevant system information

Ubuntu Linux 22.04
dynamic_linking feature
rustc 1.86.0-nightly (a730edcd6 2025-01-30)

Adapter info

`AdapterInfo { name: "NVIDIA GeForce RTX 4080", vendor: 4318, device: 9988, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "535.183.01", backend: Vulkan }`

What you did

I'm just toying around with a tower-defense-style game. When adding the tower-placement systems, I was placing lots of Cylinders on a plane.

What went wrong

Expected:
I expected to see lots and lots of cylinders, maybe seeing the FPS drop as the number gets very large

Actual:
After a few 10s or 100s of cylinders, the geometry "turns inside out" (see videos)

Additional information

  • I'm very new to Bevy, I could be using some bad memory-access pattern, and only getting lucky with ordering/optimization on older commits.
  • No errors or warning in logs
  • Maybe something to do with memory getting stomped?
  • Occurs in both release and debug build profiles

Videos

Bad

bad.mp4

Good

good.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions