0 votes

I have a minimap(viewport) that shows the whole map, but is there a way to make lighting not render in it because it gets really laggy

Godot version 3.2.2
in Engine by (12 points)

There should be a way of doing it. Check the viewport settings, try to find "unshaded" or something along those lines, I remember doing it.

When I'm on PC I'll try to find it for you.

no, I couldn't find that property, or is it a material you want me to add?

2 Answers

0 votes

For any viewport you can disable lighting like this:

  1. Select viewport
  2. Go to the inspector window
  3. Find the "rendering" fold-out group
  4. Find "debug draw" at the bottom of the new group
  5. Click "disabled" to open the menu
  6. Select "unshaded" in the menu

Your viewport should no longer use lighting.

But, you can use other stuff for viewport optimizations too if it's still laggy. Probably most useful will be making the viewport's size smaller, or putting the Viewport in a ViewportContainer and changing "stretch shrink" to a number like 4.

by (52 points)

Thanks for responding! I tried this out, but the viewport still appears to be rendering light effects... I tried this on the main viewport too, but it still renders light effects, but It's ok since I found a short-term solution for now though.

but thanks anyways

Note that debug draw modes are only supported when using the GLES3 renderer, not GLES2.

0 votes

The best way to avoid performance issues when using a minimap is to make its viewport render only once, instead of rendering every frame.

If you absolutely need world elements to update in real-time, then update the viewport manually at a lower rate using a Timer node (e.g. 5 times per second).

by (12,653 points)

ok thanks for answering, but I planned to delete it to completely avoid this issue, but thanks for answering though.

is there a way I can close this issue?

There is no process to close questions, but you can mark one of the answers as accepted by clicking the check mark next to it :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.