godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.94k stars 21.15k forks source link

[4.0]-Full Screen HTML5 On PC Windows/Linux Desktop Internet Browsers Is Very Slow? #74034

Closed ghost closed 1 year ago

ghost commented 1 year ago

Godot version

v4.0.rc5.official [6296b4600]

System information

[4.0 RC5 Win 11] - Full Screen HTML5 On PC Windows/Linux Desktop Internet Browsers

Issue description

Hi,

Run below HTML5 build in your desktop Internet browser: https://betamaxheroes.org/games/TS3-Godot_4/builds/RC0/WebVer/index.html

It's slower than a Microsoft Powerpoint slideshow. Full screen HTML5/WebGL should not be this slow. It is time to optimize the HTML5/WebGL graphic backend.

We have gone as far as possible with optimizations, we need you to step up now. Need twice the performance then what 4.0 RC 5 is capable of.

Jesse

Steps to reproduce

# "TetriStory 110%" - Release Candidate ZERO+1

https://betamaxheroes.org/games/TS3-Godot_4/builds/RC0/WebVer/index.html

Minimal reproduction project

# TS3 - 100% M.I.T. Open-Source

https://github.com/BetaMaxHero/GDScript_Godot_4_T-Story

michaldev commented 1 year ago

I confirm. I have created a game on Godot 4. Unfortunately, I am unable to release it. It is a multiplayer game where obtaining as many players as possible is crucial. The easiest way to get random players is through the browser version + native versions available on Android/iOS/Windows as an additional option. Currently, the browser version of the game completely hangs the browser (Chrome/Firefox) on macOS, and does not launch at all on iOS. It works on browsers on Windows and Linux, but very unstably.

Zireael07 commented 1 year ago

@michaldev if your issue is on MacOS only, you're running into a different, already reported issue specific to MacOS

Calinou commented 1 year ago

@BetaMaxHero Which graphics card model are you using, and which screen resolution are you using?

@michaldev This is already being tracked in https://github.com/godotengine/godot/issues/70691.

clayjohn commented 1 year ago

I'm just going to point out that bug reports like this are extremely unhelpful. There is no useful information that points a contributor in a direction to start debugging. The MRP is a link to your game, which means you are asking for a contributor to debug and optimize your game before they can even begin resolving issues within Godot itself.

For a performance-based bug report to be useful you need to include at least the following:

  1. What device(s) you have tested on. This needs to include both OS and hardware specs
  2. What the bottleneck is. Is your game bottlenecked by the CPU or GPU or both? Is this an issue with rendering speed, physics, script performance etc). Right now no one is going to look at this issue because it doesn't clearly fall within any given team's area.
  3. A minimal reproduction project that is truly minimal. No one wants to optimize your game for you, we need you to tell us what elements of Godot are too slow so we can optimize them
  4. Actual performance numbers, what FPS are you getting on each of the devices you have tested on? Sarcastic remarks about performance aren't helpful and only serve to turn prospective contributors away

Finally saying things like:

We have gone as far as possible with optimizations, we need you to step up now. Need twice the performance then what 4.0 RC 5 is capable of.

Guarantees that no one is going to volunteer to work on your issue. Try to be less demanding and more respectful of contributor time when asking for help.

In general, being nice and providing helpful information greatly increases the chances that:

  1. Someone will investigate the performance problems you are facing and
  2. Someone will actually be able to solve the bug
NianoTT commented 1 year ago

Run below HTML5 build in your desktop Internet browser: https://betamaxheroes.org/games/TS3-Godot_4/builds/RC0/WebVer/index.html

It's slower than a Microsoft Powerpoint slideshow.

Ryzen3 3800X, GTX 1080ti, Windows 10, Firefox 110

Runs perfectly fine in terms of performance, no slideshow.

Calinou commented 1 year ago

Closing, as OP removed their account and the issue is not actionable.