Skip to content

Simple unreal plugin that exposes an engine function to blueprints to disable the rendering of the viewport.

License

benjavides/DisableViewportRendering-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disable Viewport Rendering Plugin

image-20240126185945578

Simple unreal plugin that exposes an engine function to blueprints to disable the rendering of the viewport.

⚠️ 2025 UPDATE

Since Unreal 5.5 it is possible to output the Viewport directly to NDI, thus avoiding rendering the scene 2 times. So the plugin doesn’t make much sense now. Here is a sample project in Unreal 5.6.1 showing how to do it, it also shows how you would use the plugin with a SceneCapture2D without using third party plugins.

Why would I want this?

Useful for when you want to render the scene using a SceneCapture2D to a RenderTexture which is then being sent in real-time to another software using a protocol like NDI, Spout or Texture Share.

You can see an improvement in performance of around 20% by disabling the viewport rendering.

How to use?

Copy the DisableRendering folder to your projects Plugins folder. If it doesn't exist, create it.

I included a BP_DisableEditorRendering blueprint in the plugin's content folder that uses the function for the aforementioned use case. Drag that blueprint to your scene and set the properties in the Details Panel to your liking.

image-20240126190830763

How does it work?

It sets the bDisableWorldRendering property of the UGameViewportClient. More information.

This also stops the rendering of SceneCapture2D components, but you can manually call CaptureScene() every frame to get them to render anyway. BP_DisableEditorRendering does this automatically.

Tested on Unreal 5.6.1

About

Simple unreal plugin that exposes an engine function to blueprints to disable the rendering of the viewport.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •