PurgeCellBuffers

From the Oblivion ConstructionSet Wiki
Revision as of 16:45, 12 August 2006 by imported>DragoonWraith (OBSE and console use - special note)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax:

PurgeCellBuffers

This function clears any loaded textures or models from memory that are outside the range loaded by Oblivion. Doing so clears up wasted memory and can smooth the game.

It was added to Oblivion.exe in the first official patch, v1.1.511, but was never added to TESConstructionSet.exe, which had the effect of making it a function that could only be called from the console, as the Construction Set would not recognize it has a valid function and would not compile a script using it.

The Oblivion Script Extender allows scripters to use the function, but unlike all other functions for OBSE, using this function does not require OBSE, and so plug-ins can be made with OBSE that use PCB and used by those who do not have OBSE.

Unlike other OBSE functions that mimic console functions, this function was designed to be used from a script, and now can be.