Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Daydream vertex lighting prevents static meshes from getting batched. #4

Open
wangvnn opened this issue Oct 3, 2017 · 0 comments
Open

Comments

@wangvnn
Copy link

wangvnn commented Oct 3, 2017

From frame debugger, I am getting error:
Cannot batch with previous mesh due to additional vertex stream.

I am not sure if this line ever works:

DaydreamVertexLighting.cs
line 209

        // re-batch geometry if it was statically batched
        if (changedGOs.Count > 0)
        {
            StaticBatchingUtility.Combine(changedGOs.ToArray(), null);
            Resources.UnloadUnusedAssets();
        }

List of things that break batching:
https://blogs.unity3d.com/kr/2017/04/03/how-to-see-why-your-draw-calls-are-not-batched-in-5-6/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant