Skip to content

Render 3D Transparent Pass takes 80+ ms for a simple empty scene + cube #95112

Open
@z4gon

Description

@z4gon

Tested versions

Godot Engine v4.3.rc2.official.3978628c6 - https://godotengine.org

System information

OpenGL API 4.1 Metal - 88 - Compatibility - Using Device: Apple - Apple M1 Pro

Issue description

The profiler shows a spike in frame time, with Render 3D Transparent Pass taking 80+ ms.

I attached a MRP with an empty scene that instantiates a cube when you click with the left mouse button.

The cube is just a MeshInstance3D with a StandardMaterial3D.
It has Transparency = Alpha, and an AnimationPlayer with an animation that pulses the color changing the alpha.

The curious thing is that it only happens in a single frame, after that, the frame time is fine for all the frames.

Screenshot 2024-08-03 at 8 59 37 PM
Screenshot 2024-08-03 at 9 05 47 PM

Steps to reproduce

  1. unzip the MRP
  2. open in godot
  3. click the play button
  4. start the visual profiler
  5. go to the game and click with the left mouse button inside the window
  6. observe the cube being instantiated
  7. observe the spike in frame time in the profiler

Minimal reproduction project (MRP)

render-3d-transparent-pass.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions