Skip to content

There are too many texture reads in the fragment shader. This slows down the game. #456

Open

Description

@IntegratedQuantum

Possible solutions:

  • Separate shaders for textures with reflectivity/emission
  • merge emission and reflectivity textures into a single texture to make everything with a single texture read.
  • Conditionally read textures, only if needed

Activity

  1. added
    bug
    optimization
    on Jun 8, 2024
  2. IntegratedQuantum commented on Jun 8, 2024

    @IntegratedQuantum
    MemberAuthor

    These performance problems are greatly amplified by anisotropic filtering.
    Disabling it seems to make things faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugoptimization

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions