Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default environment slows down godot #30881

Closed
Skaruts opened this issue Jul 27, 2019 · 5 comments
Closed

Default environment slows down godot #30881

Skaruts opened this issue Jul 27, 2019 · 5 comments

Comments

@Skaruts
Copy link

Skaruts commented Jul 27, 2019

I'm using Godot 3.1.1 stable 64 bits in GLES2 mode.

This happens in any project, empty or not. The symptom is that Godot takes a while to load up, and then also to launch my apps.

Removing the default environment in Project Settings->Environment "fixes" it (and that's how I found what was slowing it down). I've been working without any problems since I removed it... though I don't have a nice blue sky in the editor. :)


Windows 7
ATI Radeon HD 4800 Series (up to date)
Dual core 2.13Ghz (Intel Core Duo, iirc)

@Skaruts Skaruts changed the title Default environment slows down godot (found temp workaround) Default environment slows down godot Jul 27, 2019
@clayjohn
Copy link
Member

I wonder if this is related to generating the radiance map for the procedural sky. I ended up reducing the size of it and it substantially increases load times for scenes with panorama or procedural skies.

@Calinou
Copy link
Member

Calinou commented Jul 28, 2019

@clayjohn That reminds me, perhaps we could disable radiance map generation if the framebuffer allocation is configured to "2D" or "2D Without Effects" in the Project Settings. This still requires the user to edit a project setting to benefit from faster loading times in 2D-only projects, but it won't require tweaking/removing the default environment anymore.

@clayjohn
Copy link
Member

@Calinou Something like that is a good idea. However, the radiance map isn't tied to the Viewport, it is tied to the sky resource. So it gets created and updated separately from any Viewport.

Also, just realized the post is talking about GLES2. I only notice a hiccup from radiance generation in GLES3. In GLES2 there isn't as noticeable difference when using a lower radiance size.

@Skaruts
Copy link
Author

Skaruts commented Aug 27, 2019

Noticed a few days ago that my apps take longer to launch when using an environment with a procedural sky. So it's the sky that makes it slow.

@Calinou
Copy link
Member

Calinou commented Sep 1, 2021

The default environment has been removed in Godot 4.0 (in favor of the Preview Sun & Sky system), closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants