Skip to content

Render flicker issue with large amount of meshes/geometry #2

@mikau16

Description

@mikau16

Hi MonoMax,

Here is a slightly modified version of your demo to demonstrate a rendering issue I'm observing with this control.

The demo has code to generate a series of concentric cylinder meshes as well as boundary lines. What you should observe if you render it at high enough resolution, and with enough triangles/meshes, is that some of the meshes in the rendering will flicker in and out of the scene somewhat randomly.

I recorded the phenomenon here, so this is what you should be seeing.

The major changes to your project are that I added a Vertex.cs class, a VertexArrayObject.cs class, tweaked your shaders, switched from OpenGL version 3.3 to 4.5, and made modifications in ModernRenderer.cs

You may need to adjust the number of slices/stacks per cylinder and the number of cylinders to see the issue. Also, for me it tends to occur more at higher resolutions like 4k.

I HIGHLY recommend rendering this on two monitors, and then putting your window focus OFF of the WPF window. This is the most reliable way to reproduce it for me.

This uses classes

I've tested extensively on other projects and haven't had any issues with them before but if you notice something off please let me know.

Let me know if you can successfully reproduce the issue. This really is very close I think. Would be great if this can be made to work!

-Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions