Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Some custom materials cause framerate issues #198

Closed Qaomen closed 4 years ago

Qaomen commented 5 years ago

Expected behavior Custom materials have no noticeable effect on the frame rate.

Actual behavior In some cases, the default level's flag material specifically, the frame rate drops significantly when it's visible on-screen and reflected off the water's surface at the same time.

Reproduction steps

  1. Enable level reflections on the client (config.graphics.reflection.level in the config file).
  2. Ensure the current default level ("Tree Hilly") is loaded.
  3. Move the camera towards the finish flag, which uses the problematic material.
  4. Angle the camera in a way that both the flag itself and the reflection are on-screen at the same time.

Additional context The issue has currently been hot-fixed by disabling level reflections by default, hence they need to be re-enabled in the reproduction steps.