Cleanup some code
This commit is contained in:
@@ -21,7 +21,7 @@ int32 ModelsStreamingHandler::CalculateResidency(StreamableResource* resource, S
|
||||
if (quality < ZeroTolerance)
|
||||
return 0;
|
||||
|
||||
int32 lods = Math::CeilToInt(quality * lodCount);
|
||||
int32 lods = Math::CeilToInt(quality * (StreamingQuality)lodCount);
|
||||
|
||||
ASSERT(model.IsValidLODIndex(lods - 1));
|
||||
return lods;
|
||||
|
||||
@@ -108,27 +108,13 @@ public:
|
||||
|
||||
public:
|
||||
|
||||
// Streaming Manager cached variables
|
||||
struct StreamingCache
|
||||
{
|
||||
/// <summary>
|
||||
/// The minimum usage distance since last update (eg. mesh draw distance from camera).
|
||||
/// Used to calculate resource quality.
|
||||
/// </summary>
|
||||
//float MinDstSinceLastUpdate;
|
||||
|
||||
DateTime LastUpdate;
|
||||
int32 TargetResidency;
|
||||
DateTime TargetResidencyChange;
|
||||
//float MinDstSinceLastUpdate = MAX_float;
|
||||
DateTime LastUpdate = 0;
|
||||
int32 TargetResidency = 0;
|
||||
DateTime TargetResidencyChange = 0;
|
||||
SamplesBuffer<StreamingQuality, 5> QualitySamples;
|
||||
|
||||
StreamingCache()
|
||||
//: MinDstSinceLastUpdate(MAX_float)
|
||||
: LastUpdate(0)
|
||||
, TargetResidency(0)
|
||||
, TargetResidencyChange(0)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
StreamingCache Streaming;
|
||||
|
||||
Reference in New Issue
Block a user