Skip to content

How do you know if automatic mesh instancing is working or not? #20116

Answered by milewski
jak6jak asked this question in Q&A
Discussion options

You must be logged in to vote

I found the reason it was running so slowly for me. I had the EGUI WorldInspectorPlugin enabled, and whenever it was open, the framerate dropped significantly. However, when I collapsed it, I got the expected performance on the computer I'm currently using.

Screen.Recording.2025-07-29.at.12.52.37.PM.mp4

This is my code:

let tree_scene: Handle<Scene> = asset_server.load(GltfAssetLabel::Scene(0).from_asset("models/default-tree.glb"));

let batch: Vec<_> = positions
    .chunks_exact(3)
    .map(|position| Vec3::from_slice(position))
    .map(|position| {
        (
            SceneRoot(tree_scene.clone()),
            Transform::from_translation(position),
        )
    })
    .col…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JMS55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants