Optimize Unreal Engine Before Pixel Streaming
In this article
To optimize Unreal Engine before implementing Pixel Streaming, you need to reduce GPU and CPU load, cap frame rate, simplify rendering features, and stabilize the packaged build so the encoder has headroom to work with. Pixel Streaming renders your scene on a server GPU and encodes each frame to video, so every millisecond and every megabyte of VRAM you save on the render side goes directly into smoother streaming. Do this work before you add the Pixel Streaming plugin and signalling server, because tuning a scene that is already streaming means chasing two problems at once. The steps below assume Unreal Engine 5 on Windows with an NVIDIA GPU, since that is the common server setup; labels can differ slightly by engine version and hardware.
What You'll Need
- A working Unreal project that runs in the editor and can be packaged
- A target machine with a discrete GPU (NVIDIA RTX-class cards are the usual choice for streaming servers) and current drivers
- Enough free disk space for packaged builds and derived data cache
- Access to Project Settings and the project's config files
- A way to measure frame time, such as the in-editor stat commands and the packaged build's own performance readout
Step-by-Step
- Set a realistic frame rate target first. Decide whether you are streaming at 30 or 60 frames per second and treat that as a hard budget. In Project Settings, open the Engine section and look for the frame rate and smoothing options, then set a fixed frame rate cap that matches your streaming target. A scene that runs uncapped at 140 fps wastes GPU time that the encoder could be using, and it makes performance unpredictable.
- Profile before you change anything. Open the packaged or standalone game, not just the editor viewport, and use the console commands for frame timing and GPU statistics to see where time goes. Editor performance is not representative because the editor adds its own overhead. Write down your baseline frame time so you can tell whether later changes actually helped.
- Cut rendering features you do not need. Turn off or lower settings that cost a lot and show little on a video stream: heavy screen-space reflections, high-resolution shadow maps, expensive post-process effects, and excessive anti-aliasing. In Project Settings under the Rendering section, review the default scalability settings and set them to a level your target hardware can hold steadily.
- Reduce resolution and use upscaling. Streaming at 1080p is usually enough; rendering internally at a lower resolution and upscaling keeps image quality acceptable while cutting GPU cost substantially. Set the render resolution in your project's scalability or game settings rather than relying on the window size, and test how the image looks after encoding, since compression hides some softness.
- Audit your content. Check texture sizes, material complexity, and the number of draw calls. Oversized textures that are never seen close up should be reduced, and translucent or masked materials should be used sparingly because they are expensive. Merge static meshes where possible and use level-of-detail settings so distant objects cost less.
- Trim what runs at startup and in the background. Disable plugins you are not using, remove unused content packs, and check that no debug or editor-only systems are active in the packaged build. Fewer running systems means fewer spikes that show up as stutter in the stream.
- Package a development or shipping build and test it standalone. Run the packaged executable on the target machine, not through the editor, and measure frame time again. Confirm the build holds your target frame rate with headroom, ideally with the GPU not pinned at maximum, because the encoder needs spare capacity.
- Verify the GPU encoder is available and healthy. Confirm your graphics driver is current and that hardware video encoding is enabled on the machine. If the encoder is unavailable or overloaded, the stream will stutter even when the scene renders quickly, so check this before blaming your scene.
- Lock down the operating system side. Disable background updates, scheduled scans, and other processes that can steal CPU or GPU time during a session. Set the machine's power plan to high performance and make sure it is not throttling for heat.
- Document the baseline configuration. Record your frame rate cap, resolution, scalability level, and measured frame time. When you add Pixel Streaming, you will change settings again, and having a known-good baseline makes it obvious which change caused a regression.
Common Mistakes
The most frequent mistake is tuning in the editor viewport and assuming the packaged build behaves the same; it does not, and editor overhead can hide or exaggerate problems. Another is leaving the frame rate uncapped, which lets the renderer consume all available GPU time and starve the encoder. Many projects also keep high-end post-processing and shadow settings that look good locally but are largely erased by video compression, so the cost buys nothing on the viewer's screen. Finally, people often add the Pixel Streaming plugin before the scene is stable, which makes it impossible to tell whether stutter comes from rendering or from streaming.
Tips
Aim for headroom rather than a perfect match to your target frame rate; a scene that renders comfortably faster than the stream needs will absorb spikes without visible stutter. Test with the same camera movement and scene complexity your users will actually experience, since a static menu screen tells you very little. Keep a copy of your baseline settings so you can revert a change that hurts quality. If you plan to run several streams on one machine, budget GPU and encoder capacity per stream from the start rather than after the fact.
Troubleshooting
If the packaged build stutters, first confirm the frame rate cap is actually applied and that the machine is not thermally throttling. If frame time is fine but the stream still looks choppy, the problem is likely on the encoding or network side, not the scene. If image quality is poor after compression, raise the render resolution slightly or reduce fast-moving detail rather than adding more post-processing. If the build crashes on the target machine, check that the required runtime components are installed and that the GPU driver matches the hardware. When a change makes things worse, revert to your documented baseline and change one setting at a time.
Frequently Asked Questions
Should I optimize before or after adding the Pixel Streaming plugin?
Before. Optimizing first gives you a stable render baseline, so any later problem can be attributed to streaming rather than the scene.
Is 60 frames per second required for Pixel Streaming?
No. 30 frames per second is common and looks acceptable for many applications; 60 is smoother but doubles the render and encode load.
Does a higher render resolution always look better in a stream?
Not necessarily. Video compression softens detail, so a moderate resolution with stable frame timing often looks better than a high resolution that stutters.
Can I optimize using the editor only?
No. Always validate in a packaged standalone build, because editor overhead changes the numbers substantially.
Why does the GPU matter so much for streaming?
The same GPU renders the scene and feeds the hardware encoder, so leaving spare capacity is what keeps the stream smooth.