Can you disable lighting to render in viewports?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Neuroburst

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

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.

LuiWolff | 2021-04-18 17:12

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

Neuroburst | 2021-04-18 19:58

:bust_in_silhouette: Reply From: codeestuary

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.

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

Neuroburst | 2021-06-15 22:16

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

Calinou | 2021-06-15 23:34

:bust_in_silhouette: Reply From: Calinou

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).

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

Neuroburst | 2021-06-16 16:04

is there a way I can close this issue?

Neuroburst | 2021-06-16 16:05

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 :slight_smile:

Calinou | 2021-06-16 21:41