Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

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

Open IntegratedQuantum opened this issue 1 year ago • 1 comments

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

IntegratedQuantum avatar Jun 08 '24 09:06 IntegratedQuantum

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

IntegratedQuantum avatar Jun 08 '24 13:06 IntegratedQuantum