mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
correct stat collection for mixer frame time usage
This commit is contained in:
parent
667fa566d5
commit
5918c492cc
1 changed files with 3 additions and 0 deletions
|
@ -412,6 +412,9 @@ int main(int argc, const char* argv[]) {
|
||||||
|
|
||||||
if (percentageOfMaxElapsed > 0) {
|
if (percentageOfMaxElapsed > 0) {
|
||||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||||
|
} else {
|
||||||
|
// a negative value suggests that we've taken 100% of the allowable time
|
||||||
|
sumFrameTimePercentages += 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
numStatCollections++;
|
numStatCollections++;
|
||||||
|
|
Loading…
Reference in a new issue