cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

Increasing memory usage when switching to 2D viewing in the editor window (RenderingCommandBuffer: invalid pass index 1(and 2 and 3) in DrawMesh)

Open AoutoCooper opened this issue 2 years ago • 2 comments

Hi, I've noticed that when switching to 2D render mode in the editor window, memory usage spikes and starts climbing endlessly. 3 errors are displayed in the console window upon first time switching to 2D view mode:

RenderingCommandBuffer: invalid pass index 1 in DrawMesh

RenderingCommandBuffer: invalid pass index 2 in DrawMesh

RenderingCommandBuffer: invalid pass index 3 in DrawMesh

I'm guessing this happens whenever the globe is rendered in isometric mode (since there's no really such a thing as 2D in Unity), and therefore might happen in play mode (and eventually in a build), but I'm yet to check. Anyway, this issue could be countered by disabling the globe's object, thus making it not-render, but I still thought you should know.

BTW to reproduce this, simply open the full globe scene in the sample project, press the 2D render mode in the editor view port, and watch the RAM usage climb in task manager.

Tested on Unity 2021.3.16f and 2021.3.10f

Thanks

AoutoCooper avatar Feb 15 '23 13:02 AoutoCooper

Thanks for the report @AoutoCooper! I can reproduce the errors. I'll mark this as a bug to investigate when we get the chance.

j9liu avatar Feb 20 '23 20:02 j9liu

Sure! Glad I could help. Thanks for contributing to this project :D

AoutoCooper avatar Feb 21 '23 16:02 AoutoCooper