Godot Version
v4.3.stable.official [77dcf97d8]
QuestionExtreme Performance Issues with SubViewports in Web Exports – Godot 4
Issue Overview
I encountered severe performance degradation when using SubViewports to render 3D content in a 2D-based game. While the game ran smoothly in the Godot 4 editor and native exports, performance collapsed to <1 FPS when exported to HTML5 (Web), especially when multiple SubViewports were active at once.
I haven’t been able to find any combination of settings that leads to acceptable performances when exported to web. Flipping a rectangular prism is hardly the pinnacle of 3d rendering, there seems to be an issue when rendering 3d inside a Control-based game using TextureRects with SubViewports with mesh+camera setups
Or maybe I got something horribly wrong in my settings during export and someone could enlighten me?
I uploaded an early version of my game here:
https://monamibob.itch.io/adventure-slot-machine
and I’m happy to provide screenshots and descriptions of my scenes if it helps
Thank you