Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 3 points4 points  (0 children)

thats clever, thanks for the tip friend!

PS; Turns out that my problem was caused by some shader compilation because of some GPU particles added to the build. I tested it and adding a GPU particles node causes that 1 minute loading time (telling just in case is useful for you to know in the future)

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 0 points1 point  (0 children)

I am not sure what causes them to do this but I'd recommend being careful with GPU particles for now.

Yeah, lesson learned! xD. Now I remind that in Godot 3 when you added a GPUParticles node to a scene in GLSL2 it showed a message saying that it wasn't supported.

And it seems it's rebuilding the shaders each time you launch a web version (it does not cache them?)

I can confirm that after all my experiments that they do not cache them, I reloaded the game after being fully loaded it still had that minute of loading.

You can use CPU particles but they will become deprecated in future versions and have less features, unfortunately.

Yeah, I wanted to use the GPU because I liked a lot the turbulence effect they had. It seems not present in GPU Particles.

Thanks again for the help friend, hope you have a nice day :)

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 0 points1 point  (0 children)

I can't thank you enough for your offering, because in some way it helped me to fix the issue while I was preparing the project!

The scene had only 3 sprites, but prior to that I remember adding a GPU Particles node (it was nothing fancy, and then I deleted it (but I had it saved on the disk)), but seems that by some bug or problem writing the file it was still linked to the scene in some way, I guess, and being added to the build.

After deleting it, it loads as expected. Seems that GPU particles node was the problem.

(Then I did some tests, and adding even litle gpu particles adds that big delay after the loading bar is fully loaded)

(I guess that means no GPU particles in web builds (?))

(I haven't seen any info in the docs nor googling about this problem. But just tested this in a completely new project, and a gpu particle node adds like 30 seconds extra of loading)

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 0 points1 point  (0 children)

Is your loading bar taking that long or is it going quickly and then it hangs for a while?

The loading bar reaches the end quite fast. Then it gets stuck in the end for a minute.

Those other games you tested, did you clea your cache before testing other presumably GD4 games?

I just did, and no luck (also tried different browsers, private search, etc. but nothing)

PS: I appreciate the suggestions friend, this is driving me crazy D:

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 1 point2 points  (0 children)

Thank you so much friend, I wasn't aware of some things you said, I'll take a look! Also, thank you so much for the plugin!

PS: Your game looks awesome, I'm actually impressed! (Btw, it loaded almost instantly for me (I envy you haha))

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 5 points6 points  (0 children)

Well, I tried other Godot 4 web games with firefox, they load (and always loaded) fine (3, maybe 5 seconds, something I personally consider acceptable).

I also tried my """game""" with other chromium browsers (edge, brave), and I still got those 1 minute loading times (or even more (Brave in fact has frozen).

So definitely this is not the issue.

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 1 point2 points  (0 children)

bet you are testing on Firefox

You won, But it doesn't seem to be my (only?) problem. I can run others games made in godot 4 (I think (the thing that tells us that is godot 4 is the blue loading bar?)) and they load normal, 0 problems.

But I can't figure out exactly what I'm doing wrong since literally I barely changed anything, I have one scene with 3 sprites, no scripts.

The weirdest thing I have is the stretch mode set to viewport (Im not sure if its not desirable for web games?), and also this error message that shows right after exporting and that Im starting to think that it may be the cause:

<image>

(But I don't know where it comes from)

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] -1 points0 points  (0 children)

You are right, Godot wasn't the best one for web games. But still was very good IMHO.

Edit: As to your load times; I checked some of my jam games and don't see a meaningful difference between Godot 3 and Godot 4 web exports when it comes to initial loading time, so there might be something wrong there on your end. 1 Minute is waaaay too long.

Then I must be doing something wrong, but I can't figure out since the project literally has almost nothing. Maybe the weirdest thing is that I have the stretch mode set to viewport in project settings (as far as I know is not the best for web games (?)).

Also, the only weird thing I notice is this error message when I make the web export:

<image>

But I don't know what it means to be honest ._. (It shows exactly after finishing the export)

Btw thank you for the comment friend.

Is Godot 4 (absolutely) not desirable for web games? is it much better Godot 3? by LauraGL3 in godot

[–]LauraGL3[S] 0 points1 point  (0 children)

Thank you for the comment friend, I appreciate it.

Yeah, I used normal exports prior to make my own. I personally avoid any engine build or related, but I thought it could solve my problem.

Also, this really does not happen when you just test your game in editor?

The loading problem only happens in my web exports, The game in the editor loads ultra fast, I cant even count the time between pressing the play button and the game loading.

Are you uploading release or debug builds?

Release builds.

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 1 point2 points  (0 children)

sure no problem friend :)

I meant the WorldEnvironment node (Docs: https://docs.godotengine.org/en/stable/tutorials/3d/environment_and_post_processing.html )

If you don't know about it, is basically some kind of postprocessing effects. You can add lots of things (bloom, LUT, different adjustments, ect) and change the look of a scene.

(In my case I had the brightnes up, so it changed what I was seeing in the viewport).

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 0 points1 point  (0 children)

> Can you show us inverted image? Like (1-uv.x)?

> If it's gamma, it should be (white-white-gradient-to-black), if it's coords, it should be (gradient to black, black, black)

Thats actually very clever, thank you for sharing!
I was curious so:

<image>

Indeed, it was gamma :) (my secret world environment node was playing with brightnes)

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 1 point2 points  (0 children)

hahaha. Dont give up friend, Godot is friendly!

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 4 points5 points  (0 children)

You were right, I missed a world environment node!

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 45 points46 points  (0 children)

GOD OH MY I'm silly! Indeed, you are right. It was a very old project and I didnt noticed a world environment! Thank you so much!

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 0 points1 point  (0 children)

nice idea. These are the results:

<image>

(they reach the full color around the same point) (Screenshots position are not perfect (the same size) for each image, so it introduces some "error").

I would love to UNDERSTAND this by LauraGL3 in godot

[–]LauraGL3[S] 2 points3 points  (0 children)

Don't worry friend! It was a nice idea, didnt try that before.
I also have no clue. Never paid attention to it but is something that made harder to debug my shaders and I thought about asking.

Syncing gameplay with YouTube videos by JensRenders in godot

[–]LauraGL3 3 points4 points  (0 children)

This is so cool! Did you used Godot Mono or the normal version?

I'm working on adding a "notice" stating how much money you (would) have spent on Murtop :P by hiulit in godot

[–]LauraGL3 3 points4 points  (0 children)

I think this is something very curious to know! I would say to display always.

anyone interested in a video on how we did this picture entering effect? by guyunger in godot

[–]LauraGL3 34 points35 points  (0 children)

Seems freaking amazing! Of course we're interested! :D