mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 23:32:48 +02:00
changing calculation of load percentage
This commit is contained in:
parent
28c3afca9d
commit
84cf40f8aa
1 changed files with 1 additions and 2 deletions
|
@ -130,8 +130,7 @@ bool SafeLanding::isLoadSequenceComplete() {
|
||||||
float SafeLanding::loadingProgressPercentage() {
|
float SafeLanding::loadingProgressPercentage() {
|
||||||
Locker lock(_lock);
|
Locker lock(_lock);
|
||||||
if (_maxTrackedEntityCount > 0) {
|
if (_maxTrackedEntityCount > 0) {
|
||||||
float trackedEntityCount = (float)_trackedEntitiesRenderStatus.size();
|
return ((_maxTrackedEntityCount - _trackedEntitiesRenderStatus.size()) / (float)_maxTrackedEntityCount);
|
||||||
return ((_maxTrackedEntityCount - trackedEntityCount) / _maxTrackedEntityCount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
|
|
Loading…
Reference in a new issue