Section 7. rdProxies

Section 7.1. Introduction

rdProxies are a system designed to get the best performance both in-game and while editing.

Instance and Prefab Proxy Actors are Actors that you can assign to individual prefabs, ISMs, HISMs or instances of a specific mesh.

When your player comes into close proximity to one of these, it is seamlessly replaced with a fully interactive Proxy Actor – then when the player moves away, it’s swapped back to the original (with optional state saving).

It may seem a bit strange to have the interactive actor as the Proxy and the ISM/HISM as the main – but the paradigm fits as the default of the mesh instance is so much more efficient both at runtime and in the editor, thinking of them as instances helps with the perspective of efficient handling and rendering of large amounts.

This can be a huge optimization for things such as collectables, interactive buildings, vehicles etc.

By default, the proxy system is turned off. To enable it, just call the function below and set the number of frames to have it scan (around 5-10 is good, 1 is every frame, 0 or less is disabled).

All you need to do it add your prefab, instance index, or mesh to the proxy list and the rest is handled automatically.