Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 953 vs 968 for /trunk/Source Code/Environment/Vegetation/Vegetation.cpp

Diff revisions: vs.
  @@ -36,8 +36,8 @@
36 36 _instanceCountGrass(0),
37 37 _instanceCountTrees(0),
38 38 _grassStateBlockHash(0),
39 - _stateRefreshIntervalBuffer(0ULL),
40 - _stateRefreshInterval(Time::SecondsToMicroseconds(1)) ///<Every second?
39 + _stateRefreshIntervalBufferUS(0ULL),
40 + _stateRefreshIntervalUS(Time::SecondsToMicroseconds(1)) ///<Every second?
41 41 {
42 42 _threadedLoadComplete = false;
43 43 _stopLoadingRequest = false;
  @@ -251,7 +251,7 @@
251 251 _render = _threadedLoadComplete = true;
252 252 }
253 253
254 - void Vegetation::sceneUpdate(const U64 deltaTime,
254 + void Vegetation::sceneUpdate(const U64 deltaTimeUS,
255 255 SceneGraphNode& sgn,
256 256 SceneState& sceneState) {
257 257 static const Task updateTask;
  @@ -267,23 +267,23 @@
267 267
268 268 if (_render && _success) {
269 269 // Query shadow state every "_stateRefreshInterval" microseconds
270 - if (_stateRefreshIntervalBuffer >= _stateRefreshInterval) {
270 + if (_stateRefreshIntervalBufferUS >= _stateRefreshIntervalUS) {
271 271 if (!_staticDataUpdated) {
272 272 _windX = sceneState.windDirX();
273 273 _windZ = sceneState.windDirZ();
274 274 _windS = sceneState.windSpeed();
275 - _stateRefreshIntervalBuffer -= _stateRefreshInterval;
275 + _stateRefreshIntervalBufferUS -= _stateRefreshIntervalUS;
276 276 _staticDataUpdated = true;
277 277 }
278 278 }
279 - _stateRefreshIntervalBuffer += deltaTime;
279 + _stateRefreshIntervalBufferUS += deltaTimeUS;
280 280
281 281 _writeBuffer = (_writeBuffer + 1) % 2;
282 282 _readBuffer = (_writeBuffer + 1) % 2;
283 283 _culledFinal = false;
284 284 }
285 285
286 - SceneNode::sceneUpdate(deltaTime, sgn, sceneState);
286 + SceneNode::sceneUpdate(deltaTimeUS, sgn, sceneState);
287 287 }
288 288
289 289 U32 Vegetation::getQueryID() {