tweaked the updating behavior in the probe manager so calling updateProbes just flags a ProbesDirty bool, which is used to kick the update of the static parameters when the bin's render() is called

that way if multiple probes get updated at once, we don't hit the update loop for each one, which is obviously silly
also fixed the 'probes' cubemaps aren't ready until you nudge them'
turns out when we were setting out global var which we used for the irradiance and prefilter cubemap paths, it was being set AFTER the probes got loaded
so it was using an invalid path to look up the cubemaps
-@areloch
This commit is contained in:
AzaezelX 2019-04-22 15:39:55 -05:00
parent bf10d48287
commit e6a14514e0
3 changed files with 12 additions and 29 deletions

View file

@ -166,6 +166,8 @@ class RenderProbeMgr : public RenderBinManager
Vector<U32> mRegisteredProbes;
bool mProbesDirty;
//maximum number of allowed probes
static const U32 PROBE_MAX_COUNT = 250;
//maximum number of rendered probes per frame adjust as needed