Iray Programmer's Manual

Disk cache

Iray Bridge makes use of a server-side disk cache for all scene elements sent to the server. This avoids having to send the same data multiple times, which greatly reduces network traffic:

  • If the same scene is rendered more than once
  • If multiple scenes share assets such as textures and hdr images.

The data remains in the disk cache when the server is shut down, or restarted.

Before being started, the Iray Bridge server must set an appropriate path to a directory where the disk cache data will be stored. This is done by calling the method set_remote_disk_cache_path() of the IRemote_configuration API component.

Iray Bridge currently does not support removal of disk cache data. This means that the disk cache grows indefinitely when more and more data is sent to the server. It can however be removed completely when not in use by removing the files cache.db and cache.dat in the configured disk cache folder.